Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSamultlangxreflookupresults(ref DataRow row, Samultlangxreflookupresults entity)
 {
     row.SetField("langcd", entity.langcd);
     row.SetField("langdesc", entity.langdesc);
     row.SetField("descrip1", entity.descrip1);
     row.SetField("descrip2", entity.descrip2);
     row.SetField("descrip3", entity.descrip3);
     row.SetField("edidtcd", entity.edidtcd);
     row.SetField("editpcd", entity.editpcd);
     row.SetField("user1", entity.user1);
     row.SetField("user2", entity.user2);
     row.SetField("user3", entity.user3);
     row.SetField("user4", entity.user4);
     row.SetField("user5", entity.user5);
     row.SetField("user6", entity.user6);
     row.SetField("user7", entity.user7);
     row.SetField("user8", entity.user8);
     row.SetField("user9", entity.user9);
     row.SetField("rowid-sals", entity.rowidSals.ToByteArray());
 }
Пример #2
0
        public static Samultlangxreflookupresults BuildSamultlangxreflookupresultsFromRow(DataRow row)
        {
            Samultlangxreflookupresults entity = new Samultlangxreflookupresults();

            entity.langcd    = row.IsNull("langcd") ? string.Empty : row.Field <string>("langcd");
            entity.langdesc  = row.IsNull("langdesc") ? string.Empty : row.Field <string>("langdesc");
            entity.descrip1  = row.IsNull("descrip1") ? string.Empty : row.Field <string>("descrip1");
            entity.descrip2  = row.IsNull("descrip2") ? string.Empty : row.Field <string>("descrip2");
            entity.descrip3  = row.IsNull("descrip3") ? string.Empty : row.Field <string>("descrip3");
            entity.edidtcd   = row.IsNull("edidtcd") ? string.Empty : row.Field <string>("edidtcd");
            entity.editpcd   = row.IsNull("editpcd") ? string.Empty : row.Field <string>("editpcd");
            entity.user1     = row.IsNull("user1") ? string.Empty : row.Field <string>("user1");
            entity.user2     = row.IsNull("user2") ? string.Empty : row.Field <string>("user2");
            entity.user3     = row.IsNull("user3") ? string.Empty : row.Field <string>("user3");
            entity.user4     = row.IsNull("user4") ? string.Empty : row.Field <string>("user4");
            entity.user5     = row.IsNull("user5") ? string.Empty : row.Field <string>("user5");
            entity.user6     = row.Field <decimal?>("user6");
            entity.user7     = row.Field <decimal?>("user7");
            entity.user8     = row.Field <DateTime?>("user8");
            entity.user9     = row.Field <DateTime?>("user9");
            entity.rowidSals = row.Field <byte[]>("rowid-sals").ToStringEncoded();
            return(entity);
        }