Desember 27

Desember 13

>Entity Framework(often referred to as EF):
>a .NET Framework data-access technology to define and work with model classes.
>By default, the Entity Framework looks for a connection string named the same as the object context class (MovieDBContext for this project).

>Entity Framework is default to using LocalDB.

>LocalDB is a lightweight version of the SQL Server Express Database Engine
>LocalDB runs in a special execution mode of SQL Server Express that enables you to work with databases as .mdf files.
>Typically, LocalDB database files are kept in the App_Data folder of a web project.

>SQL Server Express is not recommended for use in production web applications.
>LocalDB in particular should not be used for production with a web application because it is not designed to work with IIS. However, a LocalDB database can be easily migrated to SQL Server or SQL Azure.

Desember 12

>Razor code註解符號 @*…….*@

>A controller class is where you write the code that handles the incoming browser requests, retrieves data from a database, and ultimately decides what type of response to send back to the browser.

>A view template should never perform business logic or interact with a database directly. Instead, a view template should work only with the data that’s provided to it by the controller. Maintaining thisseparation of concernshelps keep your code clean, testable and more maintainable.

>目前都是藉由Controller(藉由網址)傳遞資料給View(畫面呈現)