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

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