Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasttsastaz(ref DataRow row, Sasttsastaz entity)
 {
     row.SetField("codeval1", entity.codeval1);
     row.SetField("codeval2", entity.codeval2);
     row.SetField("codeval3", entity.codeval3);
     row.SetField("codeval4", entity.codeval4);
     row.SetField("codeval5", entity.codeval5);
     row.SetField("codeval6", entity.codeval6);
     row.SetField("codeval7", entity.codeval7);
     row.SetField("codeval8", entity.codeval8);
     row.SetField("codeval9", entity.codeval9);
     row.SetField("codeval10", entity.codeval10);
     row.SetField("codeval11", entity.codeval11);
     row.SetField("codeval12", entity.codeval12);
     row.SetField("codeval13", entity.codeval13);
     row.SetField("codeval14", entity.codeval14);
     row.SetField("codeval15", entity.codeval15);
     row.SetField("codeval16", entity.codeval16);
     row.SetField("labelfl", entity.labelfl);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Sasttsastaz BuildSasttsastazFromRow(DataRow row)
        {
            Sasttsastaz entity = new Sasttsastaz();

            entity.codeval1  = row.IsNull("codeval1") ? string.Empty : row.Field <string>("codeval1");
            entity.codeval2  = row.IsNull("codeval2") ? string.Empty : row.Field <string>("codeval2");
            entity.codeval3  = row.IsNull("codeval3") ? string.Empty : row.Field <string>("codeval3");
            entity.codeval4  = row.IsNull("codeval4") ? string.Empty : row.Field <string>("codeval4");
            entity.codeval5  = row.IsNull("codeval5") ? string.Empty : row.Field <string>("codeval5");
            entity.codeval6  = row.IsNull("codeval6") ? string.Empty : row.Field <string>("codeval6");
            entity.codeval7  = row.IsNull("codeval7") ? string.Empty : row.Field <string>("codeval7");
            entity.codeval8  = row.IsNull("codeval8") ? string.Empty : row.Field <string>("codeval8");
            entity.codeval9  = row.IsNull("codeval9") ? string.Empty : row.Field <string>("codeval9");
            entity.codeval10 = row.IsNull("codeval10") ? string.Empty : row.Field <string>("codeval10");
            entity.codeval11 = row.IsNull("codeval11") ? string.Empty : row.Field <string>("codeval11");
            entity.codeval12 = row.IsNull("codeval12") ? string.Empty : row.Field <string>("codeval12");
            entity.codeval13 = row.IsNull("codeval13") ? string.Empty : row.Field <string>("codeval13");
            entity.codeval14 = row.IsNull("codeval14") ? string.Empty : row.Field <string>("codeval14");
            entity.codeval15 = row.IsNull("codeval15") ? string.Empty : row.Field <string>("codeval15");
            entity.codeval16 = row.IsNull("codeval16") ? string.Empty : row.Field <string>("codeval16");
            entity.labelfl   = row.Field <bool>("labelfl");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }