ScaffoldingModelExtensions.GetDataAnnotations Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
GetDataAnnotations(IEntityType, IAnnotationCodeGenerator) |
Mendapatkan anotasi data untuk mengonfigurasi jenis entitas. |
GetDataAnnotations(INavigation, IAnnotationCodeGenerator) |
Mendapatkan anotasi data untuk mengonfigurasi properti navigasi. |
GetDataAnnotations(IProperty, IAnnotationCodeGenerator) |
Mendapatkan anotasi data untuk mengonfigurasi properti. |
GetDataAnnotations(ISkipNavigation, IAnnotationCodeGenerator) |
Mendapatkan anotasi data untuk mengonfigurasi properti navigasi lewati. |
GetDataAnnotations(IEntityType, IAnnotationCodeGenerator)
Mendapatkan anotasi data untuk mengonfigurasi jenis entitas.
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__5))]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GetDataAnnotations (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__5))>]
static member GetDataAnnotations : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> seq<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
<Extension()>
Public Iterator Function GetDataAnnotations (entityType As IEntityType, annotationCodeGenerator As IAnnotationCodeGenerator) As IEnumerable(Of AttributeCodeFragment)
Parameter
- entityType
- IEntityType
Jenis entitas.
- annotationCodeGenerator
- IAnnotationCodeGenerator
Generator kode anotasi penyedia.
Mengembalikan
Anotasi data.
- Atribut
Berlaku untuk
GetDataAnnotations(INavigation, IAnnotationCodeGenerator)
Mendapatkan anotasi data untuk mengonfigurasi properti navigasi.
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__7))]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GetDataAnnotations (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__7))>]
static member GetDataAnnotations : Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> seq<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
<Extension()>
Public Iterator Function GetDataAnnotations (navigation As INavigation, annotationCodeGenerator As IAnnotationCodeGenerator) As IEnumerable(Of AttributeCodeFragment)
Parameter
- navigation
- INavigation
Properti navigasi.
- annotationCodeGenerator
- IAnnotationCodeGenerator
Generator kode anotasi penyedia.
Mengembalikan
Anotasi data.
- Atribut
Berlaku untuk
GetDataAnnotations(IProperty, IAnnotationCodeGenerator)
Mendapatkan anotasi data untuk mengonfigurasi properti.
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__6))]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GetDataAnnotations (this Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__6))>]
static member GetDataAnnotations : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> seq<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
<Extension()>
Public Iterator Function GetDataAnnotations (property As IProperty, annotationCodeGenerator As IAnnotationCodeGenerator) As IEnumerable(Of AttributeCodeFragment)
Parameter
- property
- IProperty
Properti .
- annotationCodeGenerator
- IAnnotationCodeGenerator
Generator kode anotasi penyedia.
Mengembalikan
Anotasi data.
- Atribut
Berlaku untuk
GetDataAnnotations(ISkipNavigation, IAnnotationCodeGenerator)
Mendapatkan anotasi data untuk mengonfigurasi properti navigasi lewati.
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__8))]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GetDataAnnotations (this Microsoft.EntityFrameworkCore.Metadata.ISkipNavigation skipNavigation, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.EntityFrameworkCore.ScaffoldingModelExtensions+<GetDataAnnotations>d__8))>]
static member GetDataAnnotations : Microsoft.EntityFrameworkCore.Metadata.ISkipNavigation * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> seq<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
<Extension()>
Public Iterator Function GetDataAnnotations (skipNavigation As ISkipNavigation, annotationCodeGenerator As IAnnotationCodeGenerator) As IEnumerable(Of AttributeCodeFragment)
Parameter
- skipNavigation
- ISkipNavigation
Properti navigasi lewati.
- annotationCodeGenerator
- IAnnotationCodeGenerator
Generator kode anotasi penyedia.
Mengembalikan
Anotasi data.
- Atribut
Berlaku untuk
Entity Framework