/// <summary> /// Creates an instance of <see cref="AomEntityType" /> /// </summary> /// <param name="type"> /// An instance of <see cref="Type" /> that represents current entity /// </param> /// <param name="properties"> /// An instance of <see cref="AomPropertyTypeCollection" /> that represetns a collection of properties that this entity has /// </param> public AomEntityType(Type type, AomPropertyTypeCollection properties) { if (type == null) { throw new ArgumentNullException("type", LocalizationResources.Instance.AomEntityTypeNullTypeExceptionMessage); } this._type = type; this._typeFullName = type.AssemblyQualifiedName; this._collection = properties ?? new AomPropertyTypeCollection(new AomPropertyType[0]); }
/// <summary> /// Creates an instance of <see cref="AomPropertyTypeCollection" /> /// </summary> /// <param name="collection"> /// An collection of <see cref="AomPropertyType" /> /// </param> public AomPropertyTypeCollection(IEnumerable <AomPropertyType> collection) : base(AomPropertyTypeCollection.InitializeFromCollection(collection)) { }