public static Icssdefaulttype BuildIcssdefaulttypeFromRow(DataRow row) { Icssdefaulttype entity = new Icssdefaulttype(); entity.rowidIcss = row.Field <byte[]>("rowid-icss").ToStringEncoded(); entity.defaulttype = row.IsNull("defaulttype") ? string.Empty : row.Field <string>("defaulttype"); 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 UpdateRowFromIcssdefaulttype(ref DataRow row, Icssdefaulttype entity) { row.SetField("rowid-icss", entity.rowidIcss.ToByteArray()); row.SetField("defaulttype", entity.defaulttype); row.SetField("userfield", entity.userfield); }