///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Constructor.
        /// </summary>
        /// <param name="domainModel">
        ///  The domain model.
        /// </param>
        /// <param name="id">
        ///  The identifier.
        /// </param>
        /// <param name="name">
        ///  The name.
        /// </param>
        /// <param name="metadata">
        ///  The metadata.
        /// </param>
        ///-------------------------------------------------------------------------------------------------
        public PrimitiveMetaProperty(PrimitivesSchema domainModel, Identity id, string name, ISchemaValueObject metadata)
            : base(domainModel, typeof(SchemaProperty), domainModel.SchemaEntitySchema, name: name, id: id)
        {
            DebugContract.Requires(domainModel, "domainModel");
            DebugContract.RequiresNotEmpty(name);
            DebugContract.Requires(metadata, "metadata");
            DebugContract.Requires(id, "id");

            _metadata = metadata;
            ((PrimitivesSchema)domainModel).RegisterMetadata(this);
        }
 ///-------------------------------------------------------------------------------------------------
 /// <summary>
 ///  Constructor.
 /// </summary>
 /// <param name="schema">
 ///  The schema.
 /// </param>
 /// <param name="tenum">
 ///  The tenum.
 /// </param>
 ///-------------------------------------------------------------------------------------------------
 public EnumPrimitiveInternal(PrimitivesSchema schema, Type tenum)
     : base(schema, tenum)
 {
 }
Ejemplo n.º 3
0
        #pragma warning restore 0628


        ///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Constructor.
        /// </summary>
        /// <param name="domainModel">
        ///  The domain model.
        /// </param>
        ///-------------------------------------------------------------------------------------------------
        internal DoublePrimitive(PrimitivesSchema domainModel)
            : base(domainModel, typeof(double))
        {
        }
Ejemplo n.º 4
0
        #pragma warning restore 0628


        ///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Constructor.
        /// </summary>
        /// <param name="domainModel">
        ///  The domain model.
        /// </param>
        ///-------------------------------------------------------------------------------------------------
        internal Int32Primitive(PrimitivesSchema domainModel)
            : base(domainModel, typeof(Int32))
        {
        }
 ///-------------------------------------------------------------------------------------------------
 /// <summary>
 ///  Constructor.
 /// </summary>
 /// <param name="domainModel">
 ///  The domain model.
 /// </param>
 /// <param name="id">
 ///  the identifier.
 /// </param>
 ///-------------------------------------------------------------------------------------------------
 public PrimitiveMetaRelationship(PrimitivesSchema domainModel, Identity id)
     : base(domainModel, typeof(SchemaRelationship), domainModel.SchemaEntitySchema, null, id)
 {
     DebugContract.Requires(domainModel);
 }
Ejemplo n.º 6
0
 ///-------------------------------------------------------------------------------------------------
 /// <summary>
 ///  Constructor.
 /// </summary>
 /// <param name="domainModel">
 ///  The domain model.
 /// </param>
 ///-------------------------------------------------------------------------------------------------
 public CardinalityPrimitive(PrimitivesSchema domainModel)
     : base(domainModel, typeof(Cardinality))
 {
 }
Ejemplo n.º 7
0
#pragma warning restore 0628

        ///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Constructor.
        /// </summary>
        /// <param name="schema">
        ///  The domain model.
        /// </param>
        ///-------------------------------------------------------------------------------------------------
        internal StringPrimitive(PrimitivesSchema schema)
            : base(schema, typeof(string))
        {
            DebugContract.Requires(schema, "schema");
        }
Ejemplo n.º 8
0
        #pragma warning restore 0628

        ///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Constructor.
        /// </summary>
        /// <param name="domainModel">
        ///  The domain model.
        /// </param>
        ///-------------------------------------------------------------------------------------------------
        internal BytePrimitive(PrimitivesSchema domainModel)
            : base(domainModel, typeof(Byte))
        {
        }
        #pragma warning restore 0628

        ///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Constructor.
        /// </summary>
        /// <param name="domainModel">
        ///  The domain model.
        /// </param>
        ///-------------------------------------------------------------------------------------------------
        internal ByteArrayPrimitive(PrimitivesSchema domainModel)
            : base(domainModel, typeof(Byte[]))
        {
        }
Ejemplo n.º 10
0
        #pragma warning restore 0628


        ///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Constructor.
        /// </summary>
        /// <param name="domainModel">
        ///  The domain model.
        /// </param>
        ///-------------------------------------------------------------------------------------------------
        internal GuidPrimitive(PrimitivesSchema domainModel)
            : base(domainModel, typeof(Guid))
        {
        }
Ejemplo n.º 11
0
        #pragma warning restore 0628


        ///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Constructor.
        /// </summary>
        /// <param name="domainModel">
        ///  The domain model.
        /// </param>
        ///-------------------------------------------------------------------------------------------------
        internal DecimalPrimitive(PrimitivesSchema domainModel)
            : base(domainModel, typeof(decimal))
        {
        }
        #pragma warning restore 0628


        ///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Constructor.
        /// </summary>
        /// <param name="domainModel">
        ///  The domain model.
        /// </param>
        ///-------------------------------------------------------------------------------------------------
        internal TimeSpanPrimitive(PrimitivesSchema domainModel)
            : base(domainModel, typeof(TimeSpan))
        {
        }
Ejemplo n.º 13
0
 ///-------------------------------------------------------------------------------------------------
 /// <summary>
 ///  Constructor.
 /// </summary>
 /// <param name="domainModel">
 ///  The domain model.
 /// </param>
 ///-------------------------------------------------------------------------------------------------
 public PrimitiveMetaEntity(PrimitivesSchema domainModel)
     : base(domainModel, typeof(T), domainModel.SchemaEntitySchema)
 {
 }
Ejemplo n.º 14
0
 ///-------------------------------------------------------------------------------------------------
 /// <summary>
 ///  Constructor.
 /// </summary>
 /// <param name="schema">
 ///  The schema.
 /// </param>
 ///-------------------------------------------------------------------------------------------------
 public EnumPrimitive(PrimitivesSchema schema)
     : base(schema, typeof(TEnum))
 {
 }
Ejemplo n.º 15
0
 ///-------------------------------------------------------------------------------------------------
 /// <summary>
 ///  Constructor.
 /// </summary>
 /// <param name="schema">
 ///  The domain model.
 /// </param>
 /// <param name="implementedType">
 ///  Type of the implemented.
 /// </param>
 ///-------------------------------------------------------------------------------------------------
 protected PrimitiveMetaValue(PrimitivesSchema schema, Type implementedType)
     : base(schema, implementedType, schema.SchemaValueObjectSchema)
 {
 }
        #pragma warning restore 0628


        ///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Constructor.
        /// </summary>
        /// <param name="domainModel">
        ///  The domain model.
        /// </param>
        ///-------------------------------------------------------------------------------------------------
        internal DateTimePrimitive(PrimitivesSchema domainModel)
            : base(domainModel, typeof(DateTime))
        {
        }
Ejemplo n.º 17
0
        #pragma warning restore 0628


        ///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Constructor.
        /// </summary>
        /// <param name="domainModel">
        ///  The domain model.
        /// </param>
        ///-------------------------------------------------------------------------------------------------
        internal UInt16Primitive(PrimitivesSchema domainModel)
            : base(domainModel, typeof(UInt16))
        {
        }
Ejemplo n.º 18
0
        #pragma warning restore 0628


        ///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Constructor.
        /// </summary>
        /// <param name="domainModel">
        ///  The domain model.
        /// </param>
        ///-------------------------------------------------------------------------------------------------
        internal CharPrimitive(PrimitivesSchema domainModel)
            : base(domainModel, typeof(Char))
        {
        }
 ///-------------------------------------------------------------------------------------------------
 /// <summary>
 ///  Constructor.
 /// </summary>
 /// <param name="domainModel">
 ///  The domain model.
 /// </param>
 ///-------------------------------------------------------------------------------------------------
 public IdentityPrimitive(PrimitivesSchema domainModel)
     : base(domainModel, typeof(Identity))
 {
 }
Ejemplo n.º 20
0
        #pragma warning restore 0628


        ///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Constructor.
        /// </summary>
        /// <param name="domainModel">
        ///  The domain model.
        /// </param>
        ///-------------------------------------------------------------------------------------------------
        internal SinglePrimitive(PrimitivesSchema domainModel)
            : base(domainModel, typeof(Single))
        {
        }
Ejemplo n.º 21
0
 ///-------------------------------------------------------------------------------------------------
 /// <summary>
 ///  Constructor.
 /// </summary>
 /// <param name="domainModel">
 ///  The domain model.
 /// </param>
 ///-------------------------------------------------------------------------------------------------
 public TypePrimitive(PrimitivesSchema domainModel)
     : base(domainModel, typeof(Type))
 {
     DebugContract.Requires(domainModel, "domainModel");
 }
Ejemplo n.º 22
0
        #pragma warning restore 0628

        ///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Constructor.
        /// </summary>
        /// <param name="schema">
        ///  The domain model.
        /// </param>
        ///-------------------------------------------------------------------------------------------------
        internal BooleanPrimitive(PrimitivesSchema schema)
            : base(schema, typeof(bool))
        {
        }