Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcsehhazardous(ref DataRow row, Icsehhazardous entity)
 {
     row.SetField("msdssheetno", entity.msdssheetno);
     row.SetField("langcd", entity.langcd);
     row.SetField("page1", entity.page1);
     row.SetField("page2", entity.page2);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Icsehhazardous BuildIcsehhazardousFromRow(DataRow row)
        {
            Icsehhazardous entity = new Icsehhazardous();

            entity.msdssheetno = row.IsNull("msdssheetno") ? string.Empty : row.Field <string>("msdssheetno");
            entity.langcd      = row.IsNull("langcd") ? string.Empty : row.Field <string>("langcd");
            entity.page1       = row.IsNull("page1") ? string.Empty : row.Field <string>("page1");
            entity.page2       = row.IsNull("page2") ? string.Empty : row.Field <string>("page2");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }