Esempio n. 1
0
 public bool Delete(Guid PathId)
 {
     bool toReturn = false;
     using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
     {
         AspnetPersonalizationAllUsersEntity _AspnetPersonalizationAllUsersEntity = new AspnetPersonalizationAllUsersEntity(PathId);
         if (adapter.FetchEntity(_AspnetPersonalizationAllUsersEntity))
         {
             adapter.DeleteEntity(_AspnetPersonalizationAllUsersEntity);
             toReturn = true;
         }
     }
     return toReturn;
 }
Esempio n. 2
0
        public bool Update(Guid PathId, byte[] PageSettings, DateTime LastUpdatedDate)
        {
            bool toReturn = false;
            using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
            {
                AspnetPersonalizationAllUsersEntity _AspnetPersonalizationAllUsersEntity = new AspnetPersonalizationAllUsersEntity(PathId);
                if (adapter.FetchEntity(_AspnetPersonalizationAllUsersEntity))
                {

                    _AspnetPersonalizationAllUsersEntity.PageSettings = PageSettings;
                    _AspnetPersonalizationAllUsersEntity.LastUpdatedDate = LastUpdatedDate;
                    adapter.SaveEntity(_AspnetPersonalizationAllUsersEntity, true);
                    toReturn = true;
                }
            }
            return toReturn;
        }
Esempio n. 3
0
 public bool Update(AspnetPersonalizationAllUsersEntity _AspnetPersonalizationAllUsersEntity, RelationPredicateBucket filter)
 {
     bool toReturn = false;
     using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
     {
         adapter.UpdateEntitiesDirectly(_AspnetPersonalizationAllUsersEntity, filter);
         toReturn = true;
     }
     return toReturn;
 }
Esempio n. 4
0
        public bool Update(AspnetPersonalizationAllUsersEntity _AspnetPersonalizationAllUsersEntity)
        {
            bool toReturn = false;
            using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
            {
                RelationPredicateBucket filter = new RelationPredicateBucket();
                IPredicateExpression _PredicateExpression = new PredicateExpression();
                _PredicateExpression.Add(AspnetPersonalizationAllUsersFields.PathId == _AspnetPersonalizationAllUsersEntity.PathId);

                filter.PredicateExpression.Add(_PredicateExpression);

                adapter.UpdateEntitiesDirectly(_AspnetPersonalizationAllUsersEntity, filter);
                toReturn = true;
            }
            return toReturn;
        }
Esempio n. 5
0
 public AspnetPersonalizationAllUsersEntity SelectOne(Guid PathId)
 {
     AspnetPersonalizationAllUsersEntity toReturn = null;
     using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
     {
         AspnetPersonalizationAllUsersEntity _AspnetPersonalizationAllUsersEntity = new AspnetPersonalizationAllUsersEntity(PathId);
         if (adapter.FetchEntity(_AspnetPersonalizationAllUsersEntity))
         {
             toReturn = _AspnetPersonalizationAllUsersEntity;
         }
     }
     return toReturn;
 }
Esempio n. 6
0
        public AspnetPersonalizationAllUsersEntity Insert(byte[] PageSettings, DateTime LastUpdatedDate)
        {
            AspnetPersonalizationAllUsersEntity _AspnetPersonalizationAllUsersEntity = new AspnetPersonalizationAllUsersEntity();
            using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
            {

                _AspnetPersonalizationAllUsersEntity.PageSettings = PageSettings;
                _AspnetPersonalizationAllUsersEntity.LastUpdatedDate = LastUpdatedDate;
                adapter.SaveEntity(_AspnetPersonalizationAllUsersEntity, true);
            }
            return _AspnetPersonalizationAllUsersEntity;
        }
Esempio n. 7
0
 public AspnetPersonalizationAllUsersEntity Insert(AspnetPersonalizationAllUsersEntity _AspnetPersonalizationAllUsersEntity)
 {
     using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
     {
         adapter.SaveEntity(_AspnetPersonalizationAllUsersEntity, true);
     }
     return _AspnetPersonalizationAllUsersEntity;
 }