public static Glsbdivcreate BuildGlsbdivcreateFromRow(DataRow row) { Glsbdivcreate entity = new Glsbdivcreate(); entity.rowidGlsb = row.Field <byte[]>("rowid-glsb").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 UpdateRowFromGlsbdivcreate(ref DataRow row, Glsbdivcreate entity) { row.SetField("rowid-glsb", entity.rowidGlsb.ToByteArray()); row.SetField("userfield", entity.userfield); }