Beispiel #1
0
    public void GetAccess(int AccessType, int GroupCode, int MasterCode)
    {
        int ResourceCode;
        UsersDataContext dataContext = new UsersDataContext();
        var Result     = dataContext.sp_GetMultipleAccess(AccessType, GroupCode, MasterCode);
        var ListResult = dataContext.ExecuteQuery <GroupResources>(string.Format("exec sp_GetMultipleAccess '{0}','{1}','{2}'", AccessType, GroupCode, MasterCode));

        foreach (var r in ListResult)
        {
            ResourceCode = (int)((GroupResources)r).ResourceCode;
            GetAccess(AccessType, GroupCode, ResourceCode);
        }
    }