Пример #1
0
        private static ILocator Create(int structType, KeyDescriptor keyDescriptor, RecordDescriptor recordDescriptor, params string[] path)
        {
            if (!STSdb4.Database.StructureType.IsValid(structType))
            {
                throw new ArgumentException("Invalid structType");
            }

            StructureDescriptor descriptor = new StructureDescriptor(keyDescriptor, recordDescriptor);

            descriptor.Encode();

            return(new Locator(structType, descriptor, path));
        }