예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWebextendupdatestatus(ref DataRow row, Webextendupdatestatus entity)
 {
     row.SetField("activefl", entity.activefl);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("webextensionrowid", entity.webextensionrowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Webextendupdatestatus BuildWebextendupdatestatusFromRow(DataRow row)
        {
            Webextendupdatestatus entity = new Webextendupdatestatus();

            entity.activefl          = row.Field <bool>("activefl");
            entity.operinit          = row.IsNull("operinit") ? string.Empty : row.Field <string>("operinit");
            entity.transdt           = row.Field <DateTime?>("transdt");
            entity.transtm           = row.IsNull("transtm") ? string.Empty : row.Field <string>("transtm");
            entity.webextensionrowid = row.Field <byte[]>("webextensionrowid").ToStringEncoded();
            entity.userfield         = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }