09 2020 档案

摘要:public class Customer { public int CustomerID { get; set; } public int CusCode { get; set; } public string CusName { get; set; } public DateTime Effec 阅读全文
posted @ 2020-09-30 17:00 windy3417 阅读(884) 评论(0) 推荐(0)
摘要:Q1.每次从模型生成数据库都会重建数据库的所有内容,重新生成context内容,但model类却没有变化? A.如果使用的是 EF 设计器,则会为您生成上下文。 如果使用 Code First,则通常会自行编写上下文,model是通过T4模板生成的,从模型生成数据库并不会自动执行T4模板。 Q2.执 阅读全文
posted @ 2020-09-27 10:41 windy3417 阅读(167) 评论(0) 推荐(0)
摘要:public partial class WeighingSettlementModelContainer : DbContext { //不使用的默认构造函数,即dbContext(string nameOrConection) //该构造函数只能读取数据库名或app.config文件中的cone 阅读全文
posted @ 2020-09-23 14:15 windy3417 阅读(560) 评论(0) 推荐(0)
摘要:I'v got some problem, I use DataTable to store my data in dataGridView. Data was inputed like this: dt = new DataTable(); dt.Columns.Add("ID", typeof( 阅读全文
posted @ 2020-09-18 14:31 windy3417 阅读(2101) 评论(0) 推荐(1)