Example #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);
        }
Example #2
0
 private void Customize(ColumnSpec column, bool nullable)
 {
     column.IsNullable = nullable;
 }