Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromArspdisplaytotalsresults(ref DataRow row, Arspdisplaytotalsresults entity)
 {
     row.SetField("seqno", entity.seqno);
     row.SetField("column1value", entity.column1value);
     row.SetField("column2value", entity.column2value);
     row.SetField("column3value", entity.column3value);
     row.SetField("column4value", entity.column4value);
     row.SetField("column5value", entity.column5value);
     row.SetField("column6value", entity.column6value);
     row.SetField("column7value", entity.column7value);
     row.SetField("column8value", entity.column8value);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Arspdisplaytotalsresults BuildArspdisplaytotalsresultsFromRow(DataRow row)
        {
            Arspdisplaytotalsresults entity = new Arspdisplaytotalsresults();

            entity.seqno        = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.column1value = row.IsNull("column1value") ? decimal.Zero : row.Field <decimal>("column1value");
            entity.column2value = row.IsNull("column2value") ? decimal.Zero : row.Field <decimal>("column2value");
            entity.column3value = row.IsNull("column3value") ? decimal.Zero : row.Field <decimal>("column3value");
            entity.column4value = row.IsNull("column4value") ? decimal.Zero : row.Field <decimal>("column4value");
            entity.column5value = row.IsNull("column5value") ? decimal.Zero : row.Field <decimal>("column5value");
            entity.column6value = row.IsNull("column6value") ? decimal.Zero : row.Field <decimal>("column6value");
            entity.column7value = row.IsNull("column7value") ? decimal.Zero : row.Field <decimal>("column7value");
            entity.column8value = row.IsNull("column8value") ? decimal.Zero : row.Field <decimal>("column8value");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }