Example #1
0
        private static void TestSchema()
        {
            var q1 = RepositorySchema.CreateFromXml(File.ReadAllText(@"c:\temp\a.xml"));
            var q2 = RepositorySchema.CreateFromXml(File.ReadAllText(@"c:\temp\b.xml"));

            var v1 = q1.GetHashCode();
            var v2 = q2.GetHashCode();

            var c1 = q1.FieldList.Where(x => x.AllowIndex).Count();
            var c2 = q2.FieldList.Where(x => x.AllowIndex).Count();
        }
        internal RepositorySchema GetSchema(Guid repositoryId, bool clear = false)
        {
            var schemaXml = GetSchemaValue(repositoryId, clear, c => c.Xml);

            return(RepositorySchema.CreateFromXml(schemaXml));
        }