5e6c8a3f8defbc7856a3ba7a61bb2ee6f9cc1044
[mono.git] / mcs / class / referencesource / System.Data.Entity / System / Data / Mapping / EntityViewGenerationAttribute.cs
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 //---------------------------------------------------------------------
9
10 using System;
11 namespace System.Data.Mapping
12 {
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
18     {
19         #region Constructors
20         /// <summary>
21         /// Constructor for EntityViewGenerationAttribute
22         /// </summary>
23         public EntityViewGenerationAttribute(Type viewGenerationType)
24         {
25             EntityUtil.CheckArgumentNull<Type>(viewGenerationType, "viewGenType");
26             m_viewGenType = viewGenerationType;
27         }
28         #endregion
29
30         #region Fields
31         private Type m_viewGenType;
32         #endregion
33
34         #region Properties
35         public Type ViewGenerationType
36         {
37             get { return m_viewGenType; }
38         }
39         #endregion
40     }
41 }
42