public static Wtrrarreptmergerunrepts BuildWtrrarreptmergerunreptsFromRow(DataRow row) { Wtrrarreptmergerunrepts entity = new Wtrrarreptmergerunrepts(); entity.rowidWterah = row.Field <byte[]>("rowid-wterah").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 UpdateRowFromWtrrarreptmergerunrepts(ref DataRow row, Wtrrarreptmergerunrepts entity) { row.SetField("rowid-wterah", entity.rowidWterah.ToByteArray()); row.SetField("userfield", entity.userfield); }