Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSastzdatacriteria(ref DataRow row, Sastzdatacriteria entity)
 {
     row.SetField("tablename", entity.tablename);
     row.SetField("key1", entity.key1);
     row.SetField("key2", entity.key2);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Sastzdatacriteria BuildSastzdatacriteriaFromRow(DataRow row)
        {
            Sastzdatacriteria entity = new Sastzdatacriteria();

            entity.tablename = row.IsNull("tablename") ? string.Empty : row.Field <string>("tablename");
            entity.key1      = row.IsNull("key1") ? string.Empty : row.Field <string>("key1");
            entity.key2      = row.IsNull("key2") ? string.Empty : row.Field <string>("key2");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }