public static void CopyBytesProperty(PropertyContext pc, TableContext tc, int rowIndex, PropertyID propertyID) { byte[] value = pc.GetBytesProperty(propertyID); if (value != null && tc.ContainsPropertyColumn(propertyID, PropertyTypeName.PtypBinary)) { tc.SetBytesProperty(rowIndex, propertyID, value); } }
public static void CopyInt64Property(PropertyContext pc, TableContext tc, int rowIndex, PropertyID propertyID) { Nullable <long> value = pc.GetInt64Property(propertyID); if (value.HasValue && tc.ContainsPropertyColumn(propertyID, PropertyTypeName.PtypInteger64)) { tc.SetInt64Property(rowIndex, propertyID, value.Value); } }
public static void CopyBooleanProperty(PropertyContext pc, TableContext tc, int rowIndex, PropertyID propertyID) { Nullable <bool> value = pc.GetBooleanProperty(propertyID); if (value.HasValue && tc.ContainsPropertyColumn(propertyID, PropertyTypeName.PtypBoolean)) { tc.SetBooleanProperty(rowIndex, propertyID, value.Value); } }
public static void CopyStringProperty(PropertyContext pc, TableContext tc, int rowIndex, PropertyID propertyID) { string value = pc.GetStringProperty(propertyID); if (value != null && tc.ContainsPropertyColumn(propertyID, PropertyTypeName.PtypString)) { tc.SetStringProperty(rowIndex, propertyID, value); } }
public static void CopyDateTimeProperty(PropertyContext pc, TableContext tc, int rowIndex, PropertyID propertyID) { Nullable <DateTime> value = pc.GetDateTimeProperty(propertyID); if (value.HasValue && tc.ContainsPropertyColumn(propertyID, PropertyTypeName.PtypTime)) { tc.SetDateTimeProperty(rowIndex, propertyID, value.Value); } }