Exemplo n.º 1
0
        public static Gldivauthinfo BuildGldivauthinfoFromRow(DataRow row)
        {
            Gldivauthinfo entity = new Gldivauthinfo();

            entity.userhassecurity = row.Field <bool>("userhassecurity");
            entity.userfield       = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGldivauthinfo(ref DataRow row, Gldivauthinfo entity)
 {
     row.SetField("userhassecurity", entity.userhassecurity);
     row.SetField("userfield", entity.userfield);
 }