Schema/DatabaseGeneratedAttribute.cs

ef6 · src/EntityFramework/DataAnnotations/Schema/DatabaseGeneratedAttribute.cs · csharp · MIT
database

Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. if NET40

// Source: https://github.com/dotnet/ef6 | License: MIT | Copyright .NET Foundation and Contributors
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.


#if NET40

namespace System.ComponentModel.DataAnnotations.Schema
{
    using System.Diagnostics.CodeAnalysis;

    /// <summary>
    /// Specifies how the database generates values for a property.
    /// </summary>
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
    [SuppressMessage("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")]
    public class DatabaseGeneratedAttribute : Attribute
    {
        /// <summary>
        /// Initializ

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key