public static Apeiinvdetdelete BuildApeiinvdetdeleteFromRow(DataRow row) { Apeiinvdetdelete entity = new Apeiinvdetdelete(); entity.apeiRowid = row.Field <byte[]>("apei-rowid").ToStringEncoded(); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromApeiinvdetdelete(ref DataRow row, Apeiinvdetdelete entity) { row.SetField("apei-rowid", entity.apeiRowid.ToByteArray()); row.SetField("userfield", entity.userfield); }