File: System\ComponentModel\DataAnnotations\Schema\DatabaseGeneratedOption.cs
Web Access
Project: src\src\libraries\System.ComponentModel.Annotations\src\System.ComponentModel.Annotations.csproj (System.ComponentModel.Annotations)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.ComponentModel.DataAnnotations.Schema
{
    /// <summary>
    ///     The pattern used to generate values for a property in the database.
    /// </summary>
    public enum DatabaseGeneratedOption
    {
        /// <summary>
        ///     The database does not generate values.
        /// </summary>
        None = 0,
 
        /// <summary>
        ///     The database generates a value when a row is inserted.
        /// </summary>
        Identity = 1,
 
        /// <summary>
        ///     The database generates a value when a row is inserted or updated.
        /// </summary>
        Computed = 2
    }
}