Exemple #1
0
        /// <summary>
        /// This function is used to delete an ModuleSetEntity.
        /// </summary>
        /// <param name="guid">The GUID of the requested entity.</param>
        /// <returns>True on success, false on fail.</returns>
        public static bool Delete(System.Guid guid)
        {
            ModuleSetEntity   mse = new ModuleSetEntity(guid);
            DataAccessAdapter ds  = new DataAccessAdapter();

            return(ds.DeleteEntity(mse));
        }
Exemple #2
0
        /// <summary>
        /// This function is used to insert a ModuleSetEntity in the storage area.
        /// </summary>
        /// <param name="name">The Name</param>
        /// <param name="description">The Description</param>
        /// <param name="isbuiltin">The Is Built-In Flag</param>
        /// <returns>True on success, False on fail</returns>
        public static bool Insert(System.String name, System.String description, System.Boolean isbuiltin)
        {
            ModuleSetEntity mse = new ModuleSetEntity();

            mse.Description = description;
            mse.Name        = name;
            mse.IsBuiltIn   = isbuiltin;
            DataAccessAdapter ds = new DataAccessAdapter();

            return(ds.SaveEntity(mse));
        }
Exemple #3
0
        /// <summary>
        /// This method is used to retreive a single ModuleSetEntity by it Primary Key
        /// </summary>
        /// <param name="gUID">Global Unique ID</param>
        /// <returns>An entity if found, null if nothing found.</returns>
        public static ModuleSetEntity SelectSingle(Guid gUID)
        {
            ModuleSetEntity   moduleset = new ModuleSetEntity(gUID);
            DataAccessAdapter ds        = new DataAccessAdapter();

            if (ds.FetchEntity(moduleset) == true)
            {
                return(moduleset);
            }
            else
            {
                return(null);
            }
        }