1 //---------------------------------------------------------------------
2 // <copyright file="EntityViewGenerationAttribute.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
11 namespace System.Data.Mapping
14 /// Attribute to mark the assemblies that contain the generated views type.
16 [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
17 public sealed class EntityViewGenerationAttribute : System.Attribute
21 /// Constructor for EntityViewGenerationAttribute
23 public EntityViewGenerationAttribute(Type viewGenerationType)
25 EntityUtil.CheckArgumentNull<Type>(viewGenerationType, "viewGenType");
26 m_viewGenType = viewGenerationType;
31 private Type m_viewGenType;
35 public Type ViewGenerationType
37 get { return m_viewGenType; }