public static Glsfdeletecriteria BuildGlsfdeletecriteriaFromRow(DataRow row) { Glsfdeletecriteria entity = new Glsfdeletecriteria(); entity.glsfrowid = row.Field <byte[]>("glsfrowid").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 UpdateRowFromGlsfdeletecriteria(ref DataRow row, Glsfdeletecriteria entity) { row.SetField("glsfrowid", entity.glsfrowid.ToByteArray()); row.SetField("userfield", entity.userfield); }