///------------------------------------------------------------------------------------------------- /// <summary> /// Specialised constructor for use only by derived classes. /// </summary> /// <param name="name"> /// The name. /// </param> /// <param name="behavior"> /// (Optional) the behavior. /// </param> /// <param name="desc"> /// (Optional) the description. /// </param> ///------------------------------------------------------------------------------------------------- protected SchemaDefinition(string name, DomainBehavior behavior = DomainBehavior.Standard, ISchemaDefinition desc = null) : base(desc) { Contract.Requires(name, "name"); Conventions.CheckValidDomainName(name); _name = name; Behavior = behavior; }
public TestDomainDefinition(Action <IServicesContainer> handler, DomainBehavior behavior = DomainBehavior.Observable) : base("Hyperstore.Tests", behavior) { _prepareDependency = handler; }
///------------------------------------------------------------------------------------------------- /// <summary> /// Constructor. /// </summary> /// <param name="desc"> /// The description. /// </param> /// <param name="extendedMetaModel"> /// The extended meta model. /// </param> /// <param name="services"> /// The services container. /// </param> /// <param name="behavior"> /// (Optional) the behavior. /// </param> /// <param name="constraints"> /// (Optional) /// The constraints. /// </param> ///------------------------------------------------------------------------------------------------- public DomainSchemaExtension(T desc, ISchema extendedMetaModel, IServicesContainer services, DomainBehavior behavior = DomainBehavior.Standard, IConstraintsManager constraints = null) : base(extendedMetaModel.Name, services, behavior, constraints) { DebugContract.Requires(extendedMetaModel); DebugContract.Requires(services); DebugContract.Requires(constraints); _extendedMetaModel = extendedMetaModel; Definition = desc; }
public DomainSchema(T desc, string name, IServicesContainer services, DomainBehavior behavior = DomainBehavior.Standard, IConstraintsManager constraints = null) : base(name, services, behavior, constraints) { DebugContract.Requires(desc); _schemaDefinition = desc; }