Пример #1
0
        public CommonDomainObjects() : base("CommonDomainObjects")
        {
            DomainObject = this.DeclareClass <DomainObject <Guid> >();
            Id           = DomainObject.DeclareDataProperty <DomainObject <Guid>, Guid>(domainObject => domainObject.Id);
            DomainObject.HasKey(Id);

            Named = this.DeclareClass <Named <Guid> >();
            Named.SubClassOf(DomainObject);
            Name = Named.DeclareDataProperty <Named <Guid>, string>(named => named.Name);

            Classifier = this.DeclareClass <Classifier>();
            Classifier.SubClassOf(Named);
        }