Пример #1
0
 public DBFieldEntry SetInt(int value)
 {
     if (DBFieldType.HasFlag(DBFieldType.@int))
     {
         Int = value;
     }
     return(this);
 }
Пример #2
0
 public DBFieldEntry SetDouble(double value)
 {
     if (DBFieldType.HasFlag(DBFieldType.@double))
     {
         Double = value;
     }
     return(this);
 }
Пример #3
0
 public DBFieldEntry SetDateTimeOffset(DateTimeOffset dateTimeOffset)
 {
     if (DBFieldType.HasFlag(DBFieldType.DateTime))
     {
         DateTimeOffset = dateTimeOffset;
     }
     return(this);
 }
Пример #4
0
 public DBFieldEntry SetString(string value, int length = 200)
 {
     if (DBFieldType.HasFlag(DBFieldType.varchar) && value.Length <= length)
     {
         String = value;
         Length = length;
     }
     return(this);
 }