Exemple #1
0
        public static Webmodcriteria BuildWebmodcriteriaFromRow(DataRow row)
        {
            Webmodcriteria entity = new Webmodcriteria();

            entity.webmodRowID     = row.Field <byte[]>("webmodRowID").ToStringEncoded();
            entity.webmoduserfield = row.IsNull("webmoduserfield") ? string.Empty : row.Field <string>("webmoduserfield");
            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 UpdateRowFromWebmodcriteria(ref DataRow row, Webmodcriteria entity)
 {
     row.SetField("webmodRowID", entity.webmodRowID.ToByteArray());
     row.SetField("webmoduserfield", entity.webmoduserfield);
     row.SetField("userfield", entity.userfield);
 }