RelationalValueGenerationConvention Klasa
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Konwencja, która konfiguruje generowanie wartości jako OnAdd właściwości, które są częścią klucza podstawowego, a nie część żadnych kluczy obcych lub zostały skonfigurowane do posiadania wartości domyślnej bazy danych. Konfiguruje również właściwości tak, jakby OnAddOrUpdate zostały skonfigurowane jako kolumny obliczeniowe.
public class RelationalValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ValueGenerationConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
public class RelationalValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ValueGenerationConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
type RelationalValueGenerationConvention = class
inherit ValueGenerationConvention
interface IPropertyAnnotationChangedConvention
interface IConvention
type RelationalValueGenerationConvention = class
inherit ValueGenerationConvention
interface IPropertyAnnotationChangedConvention
interface IConvention
interface IEntityTypeAnnotationChangedConvention
Public Class RelationalValueGenerationConvention
Inherits ValueGenerationConvention
Implements IPropertyAnnotationChangedConvention
Public Class RelationalValueGenerationConvention
Inherits ValueGenerationConvention
Implements IEntityTypeAnnotationChangedConvention, IPropertyAnnotationChangedConvention
- Dziedziczenie
- Pochodne
- Implementuje
Uwagi
Aby uzyskać więcej informacji i przykładów, zobacz Konwencje tworzenia modeli i generowanie wartości platformy EF Core .
Konstruktory
RelationalValueGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
Tworzy nowe wystąpienie klasy RelationalValueGenerationConvention. |
Właściwości
Dependencies |
Zależności dla tej usługi. (Odziedziczone po ValueGenerationConvention) |
RelationalDependencies |
Zależności specyficzne dla dostawcy relacyjnego dla tej usługi. |