コード例 #1
0
        internal static QueryByIDsAdapterBase <DataTable> GetUserContainersAdapter(string[] schemaTypes, SearchOUIDType idType, string[] ids, bool includeDeleted)
        {
            QueryByIDsAdapterBase <DataTable> result = null;

            switch (idType)
            {
            case SearchOUIDType.LogOnName:
                result = new QueryUserBelongToContainersByCodeNamesReturnTableAdapter(schemaTypes, ids, includeDeleted);
                break;

            case SearchOUIDType.Guid:
                result = new QueryUserBelongToContainersByGuidsReturnTableAdapter(schemaTypes, ids, includeDeleted);
                break;

            case SearchOUIDType.FullPath:
                result = new QueryUserBelongToContainersByFullPathsReturnTableAdapter(schemaTypes, ids, includeDeleted);
                break;
            }

            return(result);
        }
コード例 #2
0
        internal static QueryByIDsAdapterBase<DataTable> GetUserContainersAdapter(string[] schemaTypes, SearchOUIDType idType, string[] ids, bool includeDeleted)
        {
            QueryByIDsAdapterBase<DataTable> result = null;

            switch (idType)
            {
                case SearchOUIDType.LogOnName:
                    result = new QueryUserBelongToContainersByCodeNamesReturnTableAdapter(schemaTypes, ids, includeDeleted);
                    break;
                case SearchOUIDType.Guid:
                    result = new QueryUserBelongToContainersByGuidsReturnTableAdapter(schemaTypes, ids, includeDeleted);
                    break;
                case SearchOUIDType.FullPath:
                    result = new QueryUserBelongToContainersByFullPathsReturnTableAdapter(schemaTypes, ids, includeDeleted);
                    break;
            }

            return result;
        }