public InternalDataColumn(CremaDataColumn target, string columnName, Type dataType)
     : base(columnName, dataType)
 {
     this.ValidateConstructor(columnName, dataType);
     base.Target        = target;
     this.ColumnMapping = MappingType.Element;
 }
        public static string FieldAsString(this CremaDataRow row, CremaDataColumn column)
        {
            object value = row[column];

            if (value == null || value == DBNull.Value)
            {
                return(null);
            }
            return(value.ToString());
        }
 internal static void SetFieldForce <T>(this CremaDataRow row, CremaDataColumn column, T value)
 {
     if (column.ReadOnly == true)
     {
         row.InternalObject.SetReadOnlyField <T>(column.InternalObject, value);
     }
     else
     {
         row.InternalObject.SetField <T>(column.InternalObject, value);
     }
 }
Beispiel #4
0
 public string GetColumnError(CremaDataColumn cremaColumn)
 {
     return(this.InternalObject.GetColumnError(cremaColumn.InternalObject));
 }
Beispiel #5
0
 public object this[CremaDataColumn column]
 {
     get => this.InternalObject[column.InternalObject];
Beispiel #6
0
 public void SetColumnError(CremaDataColumn column, string error)
 {
     this.InternalObject.SetColumnError(column.InternalObject, error);
 }
Beispiel #7
0
 public bool IsNull(CremaDataColumn column, DataRowVersion version)
 {
     return(this.InternalObject.IsNull(column.InternalObject, version));
 }
Beispiel #8
0
 public bool IsNull(CremaDataColumn column)
 {
     return(this.InternalObject.IsNull(column.InternalObject));
 }
 public static void SetField <T>(this CremaDataRow row, CremaDataColumn column, T value)
 {
     row.InternalObject.SetField <T>(column.InternalObject, value);
 }
 public static T Field <T>(this CremaDataRow row, CremaDataColumn column, DataRowVersion version)
 {
     return(row.InternalObject.Field <T>(column.InternalObject, version));
 }
 public static void SetFieldAsString(this CremaDataRow row, CremaDataColumn column, string textValue)
 {
     row[column] = column.ConvertFromString(textValue);
 }