Esempio n. 1
0
        /// <summary>
        /// Updates an instance of System_User_Roles if the underlying data has not changed. The original instance is System_User_Roles_Original. To bypass the concurrency check, pass in 'null' for the System_User_Roles_Original parameter.
        /// </summary>
        /// <param name="system_User_Roles">The instance of system_User_Roles to persist. </param>
        /// <param name="system_User_Roles_Original">The original instance of system_User_Roles. </param>
        /// <results>'true' if the instance was updated, otherwise, 'false'. </results>
        public static Boolean Update(System_User_Roles system_User_Roles, System_User_Roles system_User_Roles_Original)
        {
            System.Boolean value;
            value = system_User_Roles.Update(system_User_Roles_Original.System_User_Id, system_User_Roles_Original.Role_Id, system_User_Roles_Original.Active);

            return(value);
        }
Esempio n. 2
0
        /// <summary>
        /// Deletes an instance of System_User_Roles based on system_User_Roles.
        /// </summary>
        /// <param name="system_User_Roles">The instance of system_User_Roles to persist. </param>
        /// <results>'true' if the instance was deleted, otherwise, 'false'. </results>
        public static Boolean Delete(System_User_Roles system_User_Roles)
        {
            System.Boolean value;
            value = System_User_Roles.DeleteSystem_User_Roles(system_User_Roles.System_User_Role_Id);

            return(value);
        }
Esempio n. 3
0
        /// <summary>
        /// Updates an instance of System_User_Roles.
        /// </summary>
        /// <param name="system_User_Roles">The instance of system_User_Roles to persist. </param>
        /// <results>'true' if the instance was updated, otherwise, 'false'. </results>
        public static Boolean Update(System_User_Roles system_User_Roles)
        {
            System.Boolean value;
            value = system_User_Roles.Update();

            return(value);
        }
Esempio n. 4
0
        /// <summary>
        /// Updates an instance of System_User_Roles.
        /// </summary>
        /// <param name="system_User_Roles">The instance of system_User_Roles to persist. </param>
        /// <results>'true' if the instance was updated, otherwise, 'false'. </results>
        public Boolean UpdateSystem_User_Roles(System_User_Roles system_User_Roles)
        {
            System.Boolean val;

            val = system_User_Roles.Update();
            return(val);
        }
Esempio n. 5
0
        /// <summary>
        /// Deletes an instance of System_User_Roles based on System_User_Role_Id.
        /// </summary>
        /// <param name="system_User_Role_Id">The database automatically generates this value. </param>
        /// <results>'true' if the instance was deleted, otherwise, 'false'. </results>
        public Boolean DeleteSystem_User_Roles(Int32 system_User_Role_Id)
        {
            System.Boolean value;
            value = System_User_Roles.DeleteSystem_User_Roles(system_User_Role_Id);

            return(value);
        }
Esempio n. 6
0
        /// <summary>
        /// Get the instance of System_User_Roles that corresponds to the primary key. If no data is found, a null instance is returned.
        /// Returns an instance of System_User_Roles.
        /// </summary>
        /// <param name="system_User_Role_Id">The database automatically generates this value. </param>
        public System_User_Roles GetSystem_User_Roles(Int32 system_User_Role_Id)
        {
            System_User_Roles businessValue;

            businessValue = System_User_Roles.GetSystem_User_Roles(system_User_Role_Id);
            return(businessValue);
        }
Esempio n. 7
0
        /// <summary>
        /// Returns an instance of List<Bar.Business.System_User_Roles>.
        /// </summary>
        /// <param name="system_User_Role_Id">The database automatically generates this value. </param>
        /// <results>Returns a strongly typed list of System_User_Roles. </results>
        public List <System_User_Roles> GetSystem_User_RolesBySystem_User_Role_Id(Int32 system_User_Role_Id)
        {
            List <System_User_Roles> value;

            value = System_User_Roles.GetSystem_User_RolesBySystem_User_Role_Id(system_User_Role_Id);

            return(value);
        }
Esempio n. 8
0
        /// <summary>
        /// Persists a new instance of System_User_Roles to the database.
        /// </summary>
        /// <param name="system_User_Roles">The instance of system_User_Roles to persist. </param>
        public static void Insert(System_User_Roles system_User_Roles)
        {
            Int32 system_User_Role_Id = system_User_Roles.System_User_Role_Id;

            System_User_Roles.InsertSystem_User_Roles(system_User_Roles.System_User_Id, system_User_Roles.Role_Id, system_User_Roles.Active, ref system_User_Role_Id);

            //Reassign ref and out parameters
            system_User_Roles.System_User_Role_Id = system_User_Role_Id;
        }
Esempio n. 9
0
        /// <summary>
        /// Get the instance of System_User_Roles that corresponds to the primary key. If no data is found, a null instance is returned.
        /// Returns an instance of System_User_Roles.
        /// </summary>
        /// <param name="system_User_Role_Id">The database automatically generates this value. </param>
        public static System_User_Roles GetSystem_User_Roles(Int32 system_User_Role_Id)
        {
            System_User_Roles val = null;
            List <Bar.Business.System_User_Roles> businessEntityCollection = GetSystem_User_RolesBySystem_User_Role_Id(system_User_Role_Id);

            if (businessEntityCollection.Count > 0)
            {
                val = businessEntityCollection[0];
            }
            return(val);
        }
Esempio n. 10
0
        /// <summary>
        /// Updates an instance of System_User_Roles if the underlying data has not changed. The original instance is System_User_Roles_Original. To bypass the concurrency check, pass in 'null' for the System_User_Roles_Original parameter.
        /// </summary>
        /// <param name="system_User_Roles">The instance of system_User_Roles to persist. </param>
        /// <param name="system_User_Roles_Original">The original instance of system_User_Roles. </param>
        /// <results>'true' if the instance was updated, otherwise, 'false'. </results>
        public Boolean UpdateSystem_User_Roles(System_User_Roles system_User_Roles, System_User_Roles system_User_Roles_Original)
        {
            System.Boolean val;

            if (system_User_Roles_Original == null)
            {
                val = system_User_Roles.Update();
            }
            else
            {
                val = System_User_Roles.Update(system_User_Roles, system_User_Roles_Original);
            }
            return(val);
        }
Esempio n. 11
0
        /// <summary>
        /// Returns a collection of System_User_Roles filtered on the following criteria: System_User_Id. The pagingInfo parameters are used for paging.
        /// </summary>
        /// <param name="pagingInfo">a container for the paging parameters. </param>
        /// <results>Returns a strongly typed list of System_User_Roles. </results>
        public List <System_User_Roles> GetSystem_User_RolesBySystem_User_Id(Int32 system_User_Id, PagingInfo pagingInfo)
        {
            List <System_User_Roles> val;
            long totalCount;

            if (pagingInfo == null || pagingInfo.GetAll)
            {
                val = System_User_Roles.GetSystem_User_RolesBySystem_User_Id(system_User_Id);
                if (pagingInfo != null)
                {
                    pagingInfo.TotalCount = val.Count;
                }
            }
            else
            {
                pagingInfo.Normalize();
                val = System_User_Roles.GetSystem_User_RolesBySystem_User_Id(system_User_Id, pagingInfo.PageSize, pagingInfo.StartingRowNumber, pagingInfo.PageNr, out totalCount);
                pagingInfo.TotalCount = totalCount;
            }
            return(val);
        }
 private List <System_User_Roles> GetSystem_User_Roles()
 {
     return(System_User_Roles.GetSystem_User_RolesByRole_Id(Role_Id));
 }
Esempio n. 13
0
 /// <summary>
 /// Persists a new instance of System_User_Roles to the database.
 /// </summary>
 /// <param name="system_User_Roles">The instance of system_User_Roles to persist. </param>
 public void InsertSystem_User_Roles(System_User_Roles system_User_Roles)
 {
     System_User_Roles.Insert(system_User_Roles);
 }