Chuyên Đề Basic asp.net mvc revisited build a simple news site with ef feature ctp4 and sql 4 ce – part 1

Thảo luận trong 'Công Nghệ Thông Tin' bắt đầu bởi Thúy Viết Bài, 5/12/13.

  1. Thúy Viết Bài

    Thành viên vàng

    Bài viết:
    198,891
    Được thích:
    167
    Điểm thành tích:
    0
    Xu:
    0Xu
    I want to build a small news site for me, that will use EF feature CTP4 to access a SQL 4 CE database and ASP.NET MVC 3.0 as front end.

    Some weeks ago, Microsoft introduced developers:
    · EF feature CTP4
    · SQL 4 Compact Edition
    · Web Matrix
    And today I want to build a small news site for me, that will use EF feature CTP4 to access a SQL 4 CE database and ASP.NET MVC 3.0 as front end.
    Since we program Geeksship.com and other website, we always use ajax via jQuery to implement almost functions, and that is the reason why I feel hard to implement a traditional CRUD ASP.NET MVC Application. Before writing this topic, I’d revisited some to http://asp.net/mvc topics to re-learn how to program CRUD application ^_^.
    The existance of EF feature CTP4 will help us to build up an aplication with code-first style (code first and then look back to the database to see what EF generate for our application). This is the same thing when we use NHibernate and Fluent NHibernate to program, after implementing all entity classes, we just call a simple sentence and the database is generated.
    What we need to install before begin?
    · Visual Studio 2010 installed
    · EF feature CTP 4 installed (Click the follow link to download: http://www.microsoft.com/downloads/ .FamilyID=4e094902-aeff-4ee2-a12d-5881d4b0dd3e )
    · Web Matrix (this will included SQL 4 CE) and Web Matrix will help us to explore SQL 4 CE database file after coding (Download the Web Platform Installer 3 Beta and choose to install Web Matrix: http://www.microsoft.com/web/webmatrix/download/ ).
    After doing all the above things, let start by creating a new asp.net mvc project called SimpleBlog (just for fun!, I will implement a full-feature blog). Remember to add reference to Microsoft.Data.Entity.CTP.dll
     

    Các file đính kèm:

Đang tải...