1.在Model类里面,写好相应的属性. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.Entity; namespace MvcMovie.Models { public class Movie { public int ID { get; set; } public string Title { get; set; } public…
http://www.cnblogs.com/easygame/p/4447457.html 在Code First模式下使用SQLite一直存在不能自动生成数据库的问题,使用SQL Server Compact再转换到SQLite的方式(SQL Server Compact/SQLite Toolbox插件)基本不在我的考虑范围内,直接使用SQL Server Compact性能又是问题.理论上我们可以自己去实现SQLite的Code Frist支持,但实际上我只是在等待它的出现.期待了一年多…