Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCammethodtypes(ref DataRow row, Cammethodtypes entity)
 {
     row.SetField("methodkey", entity.methodkey);
     row.SetField("methodtype", entity.methodtype);
     row.SetField("methoddesc", entity.methoddesc);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Cammethodtypes BuildCammethodtypesFromRow(DataRow row)
        {
            Cammethodtypes entity = new Cammethodtypes();

            entity.methodkey  = row.IsNull("methodkey") ? string.Empty : row.Field <string>("methodkey");
            entity.methodtype = row.IsNull("methodtype") ? string.Empty : row.Field <string>("methodtype");
            entity.methoddesc = row.IsNull("methoddesc") ? string.Empty : row.Field <string>("methoddesc");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }