예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlacctauthinfo(ref DataRow row, Glacctauthinfo entity)
 {
     row.SetField("userhassecurity", entity.userhassecurity);
     row.SetField("manpostfl", entity.manpostfl);
     row.SetField("glsarecid", entity.glsarecid);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Glacctauthinfo BuildGlacctauthinfoFromRow(DataRow row)
        {
            Glacctauthinfo entity = new Glacctauthinfo();

            entity.userhassecurity = row.Field <bool>("userhassecurity");
            entity.manpostfl       = row.Field <bool>("manpostfl");
            entity.glsarecid       = row.IsNull("glsarecid") ? 0 : row.Field <long>("glsarecid");
            entity.userfield       = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }