예제 #1
0
        public ShowRoles(int show_Role_ID)
        {
            ShowRolesBL showRoles = new ShowRolesBL();
            lkpShowRoles = showRoles.GetShow_RolesByShow_Role_ID(show_Role_ID);

            Show_Role_ID = show_Role_ID;
            Description = lkpShowRoles[0].Show_Role_Description;
        }
예제 #2
0
        public ShowRoles(string connString)
        {
            _connString = connString;

            try
            {
                ShowRolesBL showRoles = new ShowRolesBL(_connString);
                lkpShowRoles = showRoles.GetShow_Roles();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #3
0
        public ShowRoles(string connString, int show_Role_ID)
        {
            _connString = connString;

            try
            {
                ShowRolesBL showRoles = new ShowRolesBL(_connString);
                lkpShowRoles = showRoles.GetShow_RolesByShow_Role_ID(show_Role_ID);
                DataRow row = lkpShowRoles.Rows[0];

                _show_Role_ID = show_Role_ID;
                _description  = Utils.DBNullToString(row["Show_Role_Description"]);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #4
0
 public ShowRoles()
 {
     ShowRolesBL showRoles = new ShowRolesBL();
     lkpShowRoles = showRoles.GetShow_Roles();
 }