Git Product home page Git Product logo

netcore_mypos's Introduction

NetCore_MyPOS

เขียนโดยใช้ vs code

#Code First . สนใจ ไฟล์ DabaseContext กับ DBinitialize

partial view

  1. ต้องเป็น .cshtml

@await Html.PartialAsync("_Userpartial")

ลิงค์ที่เกี่ยวกับ CSS

  1. [jsfiddle.net] (https://jsfiddle.net/)
  2. [codepen] (https://codepen.io/)
  3. [uplabs] (https://www.uplabs.com/)

Forgery Attacks

  1. แก้โดย asp-action

การสร้างไฟล์ Log

. ใช้ Packer ชื่อ . แก้ไขไฟล์ Program.cs . ตามนี้

            WebHost.CreateDefaultBuilder(args)
            .ConfigureLogging((hostingContext, builder) =>
                {
                    builder.AddFile("Logs/mypos-{Date}.txt");
                })
            .UseStartup<Startup>();

ViewCoponents

  1. สร้าง Folder ชื่อ ViewComponents
  2. สร้างไฟล์ .cs ชื่อ UserViewComponent.cs
  3. เรียกใช้งาน ใน View โดยประกาศ ตามนี้
 @await Component.InvokeAsync("User_database")

อย่าลืมเรื่อง Using ไฟล์ที่ _ViewImports.cshtml

  1. ให้ Using ตามชื่อ Folder เลย

Attention for VS

  1. Debugger for Chrome สำหรับการ Debug ในหน้า cshtml สามารถ debug JS ได้

การ Deploy

  1. dotnet publish -c Release -o ./deploy_app

ความรู้ทั่วไป

  1. command + Shipt + O สำหรับ หาชื่อ Function

  2. services.AddTransient(); new ทุกครั้งที่ รีเฟชร หน้า

  3. การใช้ wrap html กด alt+w

  4. การจัด format code ไฟล์ .cs กด shift+option+f สำหรับ mac

  5. การลบ ช่องว่าง ให้ f1 เลือก tralling space delete

  6. error massage ใช้ span เท่านั้น

    <span asp-validation-for="@Model.ProductValidViewModel.Detail" class="alert_error"></span>

  7. [วิธี Debug JavaScript & C# in Visual Studio Code] (https://www.youtube.com/watch?v=dKpIE0pq8VQ&feature=youtu.be&fbclid=IwAR3Qe7mWvFgYuRgAQmw8et4fY0XnAXw3wXF_PvA-kajVCzUqfUEOF2V3_ZY)

netcore_mypos's People

Contributors

udommeng avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.