Пример #1
0
        public static Pdspnpcopyresults BuildPdspnpcopyresultsFromRow(DataRow row)
        {
            Pdspnpcopyresults entity = new Pdspnpcopyresults();

            entity.rowid     = row.Field <byte[]>("rowid").ToStringEncoded();
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Пример #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdspnpcopyresults(ref DataRow row, Pdspnpcopyresults entity)
 {
     row.SetField("rowid", entity.rowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }