Exemple #1
0
        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);
        }
Exemple #2
0
 /// <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);
 }