Esempio n. 1
0
        public static Custmessageresults BuildCustmessageresultsFromRow(DataRow row)
        {
            Custmessageresults entity = new Custmessageresults();

            entity.cmessage  = row.IsNull("cmessage") ? string.Empty : row.Field <string>("cmessage");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Esempio n. 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCustmessageresults(ref DataRow row, Custmessageresults entity)
 {
     row.SetField("cmessage", entity.cmessage);
     row.SetField("userfield", entity.userfield);
 }