Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAriltransmissionresults(ref DataRow row, Ariltransmissionresults entity)
 {
     row.SetField("transmission", entity.transmission);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("adddata1", entity.adddata1);
     row.SetField("adddata2", entity.adddata2);
     row.SetField("adddata3", entity.adddata3);
     row.SetField("adddata4", entity.adddata4);
     row.SetField("adddata5", entity.adddata5);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Ariltransmissionresults BuildAriltransmissionresultsFromRow(DataRow row)
        {
            Ariltransmissionresults entity = new Ariltransmissionresults();

            entity.transmission = row.IsNull("transmission") ? string.Empty : row.Field <string>("transmission");
            entity.operinit     = row.IsNull("operinit") ? string.Empty : row.Field <string>("operinit");
            entity.transdt      = row.Field <DateTime?>("transdt");
            entity.transtm      = row.IsNull("transtm") ? string.Empty : row.Field <string>("transtm");
            entity.adddata1     = row.IsNull("adddata1") ? string.Empty : row.Field <string>("adddata1");
            entity.adddata2     = row.IsNull("adddata2") ? string.Empty : row.Field <string>("adddata2");
            entity.adddata3     = row.IsNull("adddata3") ? string.Empty : row.Field <string>("adddata3");
            entity.adddata4     = row.IsNull("adddata4") ? string.Empty : row.Field <string>("adddata4");
            entity.adddata5     = row.IsNull("adddata5") ? string.Empty : row.Field <string>("adddata5");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }