Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / System.Data.Entity / System / Data / Mapping / EntityViewGenerationAttribute.cs
blob5e6c8a3f8defbc7856a3ba7a61bb2ee6f9cc1044
1 //---------------------------------------------------------------------
2 // <copyright file="EntityViewGenerationAttribute.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 // </copyright>
5 //
6 // @owner Microsoft
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
10 using System;
11 namespace System.Data.Mapping
13 /// <summary>
14 /// Attribute to mark the assemblies that contain the generated views type.
15 /// </summary>
16 [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
17 public sealed class EntityViewGenerationAttribute : System.Attribute
19 #region Constructors
20 /// <summary>
21 /// Constructor for EntityViewGenerationAttribute
22 /// </summary>
23 public EntityViewGenerationAttribute(Type viewGenerationType)
25 EntityUtil.CheckArgumentNull<Type>(viewGenerationType, "viewGenType");
26 m_viewGenType = viewGenerationType;
28 #endregion
30 #region Fields
31 private Type m_viewGenType;
32 #endregion
34 #region Properties
35 public Type ViewGenerationType
37 get { return m_viewGenType; }
39 #endregion