/// <summary> /// This function is used to delete an ModuleSetModuleEntity. /// </summary> /// <param name="modulesetguid">The Module Set GUID of the requested entity.</param> /// <param name="moduledefinitionguid">The Module Definition GUID of the requested entity.</param> /// <returns>True on success, false on fail.</returns> public static bool Delete(System.Guid modulesetguid, System.Guid moduledefinitionguid) { ModuleSetModuleEntity mse = new ModuleSetModuleEntity(modulesetguid, moduledefinitionguid); DataAccessAdapter ds = new DataAccessAdapter(); return(ds.DeleteEntity(mse)); }
/// <summary> /// This function is used to insert a ModuleSetModuleEntity in the storage area. /// </summary> /// <param name="modulesetguid">The Module Set GUID of the requested entity.</param> /// <param name="moduledefinitionguid">The Module Definition GUID of the requested entity.</param> /// <param name="instancesallowed">The Instances Allowed of the requested entity.</param> /// <returns>True on success, False on fail</returns> public static bool Insert(System.Guid modulesetguid, System.Guid moduledefinitionguid, System.Int32 instancesallowed) { ModuleSetModuleEntity mse = new ModuleSetModuleEntity(); mse.ModuleSetGUID = modulesetguid; mse.ModuleDefinitionGUID = moduledefinitionguid; mse.InstancesAllowed = instancesallowed; DataAccessAdapter ds = new DataAccessAdapter(); return(ds.SaveEntity(mse)); }
/// <summary> /// This method is used to retreive a single ModuleSetModuleEntity by it Primary Key /// </summary> /// <param name="moduleSetGUID">Module Set Global Unique ID</param> /// <param name="moduleDefinitionGUID">Module Definition Global Unique ID</param> /// <returns>An entity if found, null if nothing found.</returns> public static ModuleSetModuleEntity SelectSingle(Guid moduleSetGUID, Guid moduleDefinitionGUID) { ModuleSetModuleEntity modulesetmodule = new ModuleSetModuleEntity(moduleSetGUID, moduleDefinitionGUID); DataAccessAdapter ds = new DataAccessAdapter(); if (ds.FetchEntity(modulesetmodule) == true) { return(modulesetmodule); } else { return(null); } }