Example #1
0
 public static ColumnModel Time(this ColumnBuilder b, string comment = null, bool?nullable = null, byte?precision = null, TimeSpan?defaultValue = null, string defaultValueSql = null, string name = null, string storeType = null, IDictionary <string, AnnotationValues> annotations = null)
 {
     return(b.Time(nullable, precision, defaultValue, defaultValueSql, name, storeType, annotations.AddComment(comment)));
 }
Example #2
0
 public static ColumnModel String(this ColumnBuilder b, string comment = null, bool?nullable = null, int?maxLength = null, bool?fixedLength = null, bool?unicode = null, string defaultValue = null, string defaultValueSql = null, string name = null, string storeType = null, IDictionary <string, AnnotationValues> annotations = null)
 {
     return(b.String(nullable, maxLength, fixedLength, unicode, defaultValue, defaultValueSql, name, storeType, annotations.AddComment(comment)));
 }
Example #3
0
 public static ColumnModel Single(this ColumnBuilder b, string comment = null, bool?nullable = null, float?defaultValue = null, string defaultValueSql = null, string name = null, string storeType = null, IDictionary <string, AnnotationValues> annotations = null)
 {
     return(b.Single(nullable, defaultValue, defaultValueSql, name, storeType, annotations.AddComment(comment)));
 }
Example #4
0
 public static ColumnModel Long(this ColumnBuilder b, string comment = null, bool?nullable = null, bool identity = false, long?defaultValue = null, string defaultValueSql = null, string name = null, string storeType = null, IDictionary <string, AnnotationValues> annotations = null)
 {
     return(b.Long(nullable, identity, defaultValue, defaultValueSql, name, storeType, annotations.AddComment(comment)));
 }
Example #5
0
 public static ColumnModel Decimal(this ColumnBuilder b, string comment = null, bool?nullable = null, byte?precision = null, byte?scale = null, decimal?defaultValue = null, string defaultValueSql = null, string name = null, string storeType = null, bool identity = false, IDictionary <string, AnnotationValues> annotations = null)
 {
     return(b.Decimal(nullable, precision, scale, defaultValue, defaultValueSql, name, storeType, identity, annotations.AddComment(comment)));
 }
Example #6
0
 public static ColumnModel Binary(this ColumnBuilder b, string comment = null, bool?nullable = null, int?maxLength = null, bool?fixedLength = null, byte[] defaultValue = null, string defaultValueSql = null, bool timestamp = false, string name = null, string storeType = null, IDictionary <string, AnnotationValues> annotations = null)
 {
     return(b.Binary(nullable, maxLength, fixedLength, defaultValue, defaultValueSql, timestamp, name, storeType, annotations.AddComment(comment)));
 }