예제 #1
0
        public static Saeafldsprc BuildSaeafldsprcFromRow(DataRow row)
        {
            Saeafldsprc entity = new Saeafldsprc();

            entity.slctpriceary = row.IsNull("slctpriceary") ? 0 : row.Field <int>("slctpriceary");
            entity.fieldname    = row.IsNull("fieldname") ? string.Empty : row.Field <string>("fieldname");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
예제 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSaeafldsprc(ref DataRow row, Saeafldsprc entity)
 {
     row.SetField("slctpriceary", entity.slctpriceary);
     row.SetField("fieldname", entity.fieldname);
     row.SetField("userfield", entity.userfield);
 }