public bool UpdateFromInfo(aspnet_RolesEntityKey EntityKey, aspnet_RolesEntityInfo EntityInfo)
 {
     try
     {
         aspnet_RolesEntityUpdate EntityUpdate = new aspnet_RolesEntityUpdate();
         EntityUpdate.LoadFromInfo(EntityInfo);
         return(this.Update(EntityKey, EntityUpdate));
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
 }
 public void InsertFromInfo(aspnet_RolesEntityInfo EntityInfo)
 {
     try
     {
         aspnet_RolesEntityInsert EntityInsert = new aspnet_RolesEntityInsert();
         EntityInsert.LoadFromInfo(EntityInfo);
         this.Insert(EntityInsert);
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
 }
 public aspnet_RolesEntityInfo.aspnet_RolesEntityInfoList DataTableToListOfEntityInfo(DataTable dt)
 {
     aspnet_RolesEntityInfo[] pArray = new aspnet_RolesEntityInfo[dt.Rows.Count];
     try
     {
         for (int index = 0; index < dt.Rows.Count; ++index)
         {
             pArray[index] = this.DataRowToEntityInfo(dt.Rows[index]);
         }
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
     return(new aspnet_RolesEntityInfo.aspnet_RolesEntityInfoList(pArray));
 }
        public aspnet_RolesEntityInfo DataRowToEntityInfo(DataRow dr)
        {
            aspnet_RolesEntityInfo aspnetRolesEntityInfo = new aspnet_RolesEntityInfo();

            try
            {
                aspnetRolesEntityInfo.ApplicationId   = (Guid)dr["ApplicationId"];
                aspnetRolesEntityInfo.RoleId          = (Guid)dr["RoleId"];
                aspnetRolesEntityInfo.RoleName        = (string)dr["RoleName"];
                aspnetRolesEntityInfo.LoweredRoleName = (string)dr["LoweredRoleName"];
                aspnetRolesEntityInfo.Description     = Convert.IsDBNull(dr["Description"]) ? (string)null : (string)dr["Description"];
                aspnetRolesEntityInfo.LongDescription = Convert.IsDBNull(dr["LongDescription"]) ? (string)null : (string)dr["LongDescription"];
            }
            catch (Exception ex)
            {
                Helpers.Logger.Logger.LogExceptionStatic(ex);
                throw ex;
            }
            return(aspnetRolesEntityInfo);
        }