示例#1
0
        public static Reptwizardfinishoptions BuildReptwizardfinishoptionsFromRow(DataRow row)
        {
            Reptwizardfinishoptions entity = new Reptwizardfinishoptions();

            entity.optionnumber = row.IsNull("optionnumber") ? 0 : row.Field <int>("optionnumber");
            entity.optionname   = row.IsNull("optionname") ? string.Empty : row.Field <string>("optionname");
            entity.optionvalue  = row.IsNull("optionvalue") ? string.Empty : row.Field <string>("optionvalue");
            return(entity);
        }
示例#2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReptwizardfinishoptions(ref DataRow row, Reptwizardfinishoptions entity)
 {
     row.SetField("optionnumber", entity.optionnumber);
     row.SetField("optionname", entity.optionname);
     row.SetField("optionvalue", entity.optionvalue);
 }