Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcearrowcriteria(ref DataRow row, Icearrowcriteria entity)
 {
     row.SetField("kpewsecure", entity.kpewsecure);
     row.SetField("oeetsecure", entity.oeetsecure);
     row.SetField("wtetsecure", entity.wtetsecure);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Icearrowcriteria BuildIcearrowcriteriaFromRow(DataRow row)
        {
            Icearrowcriteria entity = new Icearrowcriteria();

            entity.kpewsecure = row.IsNull("kpewsecure") ? 0 : row.Field <int>("kpewsecure");
            entity.oeetsecure = row.IsNull("oeetsecure") ? 0 : row.Field <int>("oeetsecure");
            entity.wtetsecure = row.IsNull("wtetsecure") ? 0 : row.Field <int>("wtetsecure");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }