示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSmsalesrepcopy(ref DataRow row, Smsalesrepcopy entity)
 {
     row.SetField("fromslsrep", entity.fromslsrep);
     row.SetField("toslsrep", entity.toslsrep);
     row.SetField("rowid", entity.rowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Smsalesrepcopy BuildSmsalesrepcopyFromRow(DataRow row)
        {
            Smsalesrepcopy entity = new Smsalesrepcopy();

            entity.fromslsrep = row.IsNull("fromslsrep") ? string.Empty : row.Field <string>("fromslsrep");
            entity.toslsrep   = row.IsNull("toslsrep") ? string.Empty : row.Field <string>("toslsrep");
            entity.rowid      = row.Field <byte[]>("rowid").ToStringEncoded();
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }