2011-09-23 16 views

Trả lời

18

giá trị mặc định cho Dòng newid() và getdate() có sẵn (cho SQL Server ít nhất) bằng cách tham khảo một trong hai SystemMethods.NewGuid hoặc SystemMethods.CurrentDateTime, ví dụ:

Create 
    .Column("incomeIdGuid").OnTable("tblIncome") 
    .AsGuid() 
    .NotNullable() 
    .WithDefaultValue(SystemMethods.NewGuid);