Exemple #1
0
        public static bool IsInitialized(this Oms oms)
        {
            if (oms.DefaultTenant == TenantHandle.Empty)
            {
                throw new InvalidOperationException("please specify a tenant");
            }

            if (oms.HasInstance(KnownInstanceGuids.Classes.Class) && oms.HasInstance(KnownInstanceGuids.Classes.Attribute) && oms.HasInstance(KnownInstanceGuids.Classes.Relationship))
            {
                return(true);
            }
            return(false);
        }