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

            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 UpdateRowFromLoadwtlineextcriteria(ref DataRow row, Loadwtlineextcriteria entity)
 {
     row.SetField("wtno", entity.wtno);
     row.SetField("wtsuf", entity.wtsuf);
     row.SetField("lineno", entity.lineno);
 }