Ejemplo n.º 1
0
        ///-------------------------------------------------------------------------------------------------
        /// <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;
        }
Ejemplo n.º 2
0
 public TestDomainDefinition(Action <IServicesContainer> handler, DomainBehavior behavior = DomainBehavior.Observable)
     : base("Hyperstore.Tests", behavior)
 {
     _prepareDependency = handler;
 }
Ejemplo n.º 3
0
        ///-------------------------------------------------------------------------------------------------
        /// <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;
        }
Ejemplo n.º 4
0
 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;
 }