Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSastaauthinfo(ref DataRow row, Sastaauthinfo entity)
 {
     row.SetField("sastatype", entity.sastatype);
     row.SetField("codeval", entity.codeval);
     row.SetField("descrip", entity.descrip);
     row.SetField("reqauthfl", entity.reqauthfl);
     row.SetField("reqinvfl", entity.reqinvfl);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Sastaauthinfo BuildSastaauthinfoFromRow(DataRow row)
        {
            Sastaauthinfo entity = new Sastaauthinfo();

            entity.sastatype = row.IsNull("sastatype") ? string.Empty : row.Field <string>("sastatype");
            entity.codeval   = row.IsNull("codeval") ? string.Empty : row.Field <string>("codeval");
            entity.descrip   = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            entity.reqauthfl = row.IsNull("reqauthfl") ? string.Empty : row.Field <string>("reqauthfl");
            entity.reqinvfl  = row.IsNull("reqinvfl") ? string.Empty : row.Field <string>("reqinvfl");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }