コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromLoadpoaddonscriteria(ref DataRow row, Loadpoaddonscriteria entity)
 {
     row.SetField("ordertype", entity.ordertype);
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("lineno", entity.lineno);
 }
コード例 #2
0
        public static Loadpoaddonscriteria BuildLoadpoaddonscriteriaFromRow(DataRow row)
        {
            Loadpoaddonscriteria entity = new Loadpoaddonscriteria();

            entity.ordertype = row.IsNull("ordertype") ? string.Empty : row.Field <string>("ordertype");
            entity.pono      = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf     = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            entity.lineno    = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            return(entity);
        }