Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System.Data.Entity / System / Data / Objects / DataClasses / EdmSchemaAttribute.cs
1 //---------------------------------------------------------------------
2 // <copyright file="EdmSchemaAttribute.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.Objects.DataClasses
12 {
13     /// <summary>
14     /// Attribute for static types
15     /// </summary>
16     [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")]
17     [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class, AllowMultiple = true)]
18     public sealed class EdmSchemaAttribute : System.Attribute
19     {
20         /// <summary>
21         /// Constructor for EdmSchemaAttribute
22         /// </summary>
23         public EdmSchemaAttribute()
24         {
25         }
26         /// <summary>
27         /// Setting this parameter to a unique value for each model file in a Visual Basic
28         /// assembly will prevent the following error: 
29         /// "'System.Data.Objects.DataClasses.EdmSchemaAttribute' cannot be specified more than once in this project, even with identical parameter values."
30         /// </summary>
31         public EdmSchemaAttribute(string assemblyGuid)
32         {
33             if (null == assemblyGuid)
34             {
35                 throw new System.ArgumentNullException("assemblyGuid");
36             }
37         }
38     }
39 }
40