1 //---------------------------------------------------------------------
2 // <copyright file="EdmSchemaAttribute.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
11 namespace System.Data.Objects.DataClasses
14 /// Attribute for static types
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
21 /// Constructor for EdmSchemaAttribute
23 public EdmSchemaAttribute()
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."
31 public EdmSchemaAttribute(string assemblyGuid)
33 if (null == assemblyGuid)
35 throw new System.ArgumentNullException("assemblyGuid");