コード例 #1
0
        public static Saeecopyresults BuildSaeecopyresultsFromRow(DataRow row)
        {
            Saeecopyresults entity = new Saeecopyresults();

            entity.eventname = row.IsNull("eventname") ? string.Empty : row.Field <string>("eventname");
            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 UpdateRowFromSaeecopyresults(ref DataRow row, Saeecopyresults entity)
 {
     row.SetField("eventname", entity.eventname);
     row.SetField("rowid", entity.rowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }