Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasttcmst(ref DataRow row, Sasttcmst entity)
 {
     row.SetField("ccfuncnm", entity.ccfuncnm);
     row.SetField("field1side", entity.field1side);
     row.SetField("field2side", entity.field2side);
     row.SetField("field3side", entity.field3side);
     row.SetField("field4side", entity.field4side);
     row.SetField("field1col", entity.field1col);
     row.SetField("field2col", entity.field2col);
     row.SetField("field3col", entity.field3col);
     row.SetField("field4col", entity.field4col);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Sasttcmst BuildSasttcmstFromRow(DataRow row)
        {
            Sasttcmst entity = new Sasttcmst();

            entity.ccfuncnm   = row.IsNull("ccfuncnm") ? string.Empty : row.Field <string>("ccfuncnm");
            entity.field1side = row.IsNull("field1side") ? string.Empty : row.Field <string>("field1side");
            entity.field2side = row.IsNull("field2side") ? string.Empty : row.Field <string>("field2side");
            entity.field3side = row.IsNull("field3side") ? string.Empty : row.Field <string>("field3side");
            entity.field4side = row.IsNull("field4side") ? string.Empty : row.Field <string>("field4side");
            entity.field1col  = row.IsNull("field1col") ? string.Empty : row.Field <string>("field1col");
            entity.field2col  = row.IsNull("field2col") ? string.Empty : row.Field <string>("field2col");
            entity.field3col  = row.IsNull("field3col") ? string.Empty : row.Field <string>("field3col");
            entity.field4col  = row.IsNull("field4col") ? string.Empty : row.Field <string>("field4col");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }