示例#1
0
        public static Glsbcopyresults BuildGlsbcopyresultsFromRow(DataRow row)
        {
            Glsbcopyresults entity = new Glsbcopyresults();

            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 UpdateRowFromGlsbcopyresults(ref DataRow row, Glsbcopyresults entity)
 {
     row.SetField("rowid", entity.rowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }