Ejemplo n.º 1
0
        public Table <T> WithPrimaryKey(Expression <Func <T, int> > key, bool isIdentity = false)
        {
            var member = (MemberExpression)key.Body;

            _keyColumn            = Columns.Single(c => c.Name == member.Member.Name);
            _keyColumn.IsIdentity = isIdentity;
            return(this);
        }
Ejemplo n.º 2
0
 private void Customize(ColumnSpec column, bool nullable)
 {
     column.IsNullable = nullable;
 }