Пример #1
0
        public static Loadwtquickviewtiescriteria BuildLoadwtquickviewtiescriteriaFromRow(DataRow row)
        {
            Loadwtquickviewtiescriteria entity = new Loadwtquickviewtiescriteria();

            entity.wtno   = row.IsNull("wtno") ? 0 : row.Field <int>("wtno");
            entity.wtsuf  = row.IsNull("wtsuf") ? 0 : row.Field <int>("wtsuf");
            entity.lineno = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            return(entity);
        }
Пример #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromLoadwtquickviewtiescriteria(ref DataRow row, Loadwtquickviewtiescriteria entity)
 {
     row.SetField("wtno", entity.wtno);
     row.SetField("wtsuf", entity.wtsuf);
     row.SetField("lineno", entity.lineno);
 }