コード例 #1
0
        public static Loadpolinehistorycriteria BuildLoadpolinehistorycriteriaFromRow(DataRow row)
        {
            Loadpolinehistorycriteria entity = new Loadpolinehistorycriteria();

            entity.pono   = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            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 UpdateRowFromLoadpolinehistorycriteria(ref DataRow row, Loadpolinehistorycriteria entity)
 {
     row.SetField("pono", entity.pono);
     row.SetField("lineno", entity.lineno);
 }