示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVasectionshipcriteria(ref DataRow row, Vasectionshipcriteria entity)
 {
     row.SetField("updateall", entity.updateall);
     row.SetField("oper2", entity.oper2);
     row.SetField("workdate", entity.workdate);
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
     row.SetField("seqno", entity.seqno);
 }
示例#2
0
        public static Vasectionshipcriteria BuildVasectionshipcriteriaFromRow(DataRow row)
        {
            Vasectionshipcriteria entity = new Vasectionshipcriteria();

            entity.updateall = row.Field <bool>("updateall");
            entity.oper2     = row.IsNull("oper2") ? string.Empty : row.Field <string>("oper2");
            entity.workdate  = row.Field <DateTime?>("workdate");
            entity.vano      = row.IsNull("vano") ? 0 : row.Field <int>("vano");
            entity.vasuf     = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf");
            entity.seqno     = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            return(entity);
        }