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

            entity.slctamountary = row.IsNull("slctamountary") ? 0 : row.Field <int>("slctamountary");
            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 UpdateRowFromSaeafldsamt(ref DataRow row, Saeafldsamt entity)
 {
     row.SetField("slctamountary", entity.slctamountary);
     row.SetField("fieldname", entity.fieldname);
     row.SetField("userfield", entity.userfield);
 }