예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVasectiondelete(ref DataRow row, Vasectiondelete entity)
 {
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
     row.SetField("seqno", entity.seqno);
     row.SetField("mode", entity.mode);
     row.SetField("skipfl", entity.skipfl);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Vasectiondelete BuildVasectiondeleteFromRow(DataRow row)
        {
            Vasectiondelete entity = new Vasectiondelete();

            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");
            entity.mode      = row.IsNull("mode") ? string.Empty : row.Field <string>("mode");
            entity.skipfl    = row.Field <bool>("skipfl");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }