I m having a very odd issue with SubSonic where when I edit a class the database isn t being updated, even when I delete it and regenerate it.
例:简单班
public class Customer {
public Guid Id { get; set; }
public string Description { get; set; }
}
Customer c = new Customer() { Id = Guid.NewGuid(), Description = "Toaster" };
var repo = new SimpleRepository("CustomerTest",
SimpleRepositoryOptions.RunMigrations);
repo.Add(c);
如果我管理这一法典,它就会完美地发挥作用,建立一个“监管机构”表,并插入星号。 然而,如果我决定将我的客户类别改为:
public class Customer {
public Guid Id { get; set; }
public string Description { get; set; }
public int Cost { get; set;}
}
数据库表仍为“Id, 说明”。 如果我在客户领域创造了一个全新的类别和历史,它将首次正确编制表格,并再次确定任何变化。
任何帮助?