create table Orders (
OrderID nvarchar(32) primary key not null,
Customer nvarchar(32) not null,
Amount int
)
the CLR representation will be like next one:
[Table(Name="Orders")]
public class Order {
[Column(DbType="nvarchar(32) not null", Id=true)]
public string OrderID;
[Column(DbType="nvarchar(32) not null")]
public string Customer;
[Column]
public int? Amount;
}
I suppose that in the future the database model will be enough to create the database DDL script, data class definitions and data access layers using a code generator.

0 comments:
Post a Comment