e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
//---------------------------------------------------------------------
|
|
// <copyright file="EntityViewGenerationAttribute.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//
|
|
// @owner [....]
|
|
// @backupOwner [....]
|
|
//---------------------------------------------------------------------
|
|
|
|
using System;
|
|
namespace System.Data.Mapping
|
|
{
|
|
/// <summary>
|
|
/// Attribute to mark the assemblies that contain the generated views type.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
|
|
public sealed class EntityViewGenerationAttribute : System.Attribute
|
|
{
|
|
#region Constructors
|
|
/// <summary>
|
|
/// Constructor for EntityViewGenerationAttribute
|
|
/// </summary>
|
|
public EntityViewGenerationAttribute(Type viewGenerationType)
|
|
{
|
|
EntityUtil.CheckArgumentNull<Type>(viewGenerationType, "viewGenType");
|
|
m_viewGenType = viewGenerationType;
|
|
}
|
|
#endregion
|
|
|
|
#region Fields
|
|
private Type m_viewGenType;
|
|
#endregion
|
|
|
|
#region Properties
|
|
public Type ViewGenerationType
|
|
{
|
|
get { return m_viewGenType; }
|
|
}
|
|
#endregion
|
|
}
|
|
}
|
|
|