IMutableTypeBase.AddComplexProperty 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
AddComplexProperty(String, Boolean) |
Menambahkan properti kompleks ke tipe ini. |
AddComplexProperty(MemberInfo, String, Boolean) |
Menambahkan properti kompleks ke tipe ini. |
AddComplexProperty(String, Type, Type, String, Boolean) |
Menambahkan properti kompleks ke tipe ini. |
AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean) |
Menambahkan properti kompleks ke tipe ini. |
AddComplexProperty(String, Boolean)
Menambahkan properti kompleks ke tipe ini.
public Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty AddComplexProperty (string name, bool collection = false);
abstract member AddComplexProperty : string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
Public Function AddComplexProperty (name As String, Optional collection As Boolean = false) As IMutableComplexProperty
Parameter
- name
- String
Nama properti yang akan ditambahkan.
- collection
- Boolean
Menunjukkan apakah properti mewakili koleksi.
Mengembalikan
Properti yang baru dibuat.
Berlaku untuk
AddComplexProperty(MemberInfo, String, Boolean)
Menambahkan properti kompleks ke tipe ini.
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty AddComplexProperty (System.Reflection.MemberInfo memberInfo, string? complexTypeName = default, bool collection = false);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")>]
abstract member AddComplexProperty : System.Reflection.MemberInfo * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
override this.AddComplexProperty : System.Reflection.MemberInfo * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
Public Overridable Function AddComplexProperty (memberInfo As MemberInfo, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false) As IMutableComplexProperty
Parameter
- memberInfo
- MemberInfo
Anggota yang sesuai di kelas .
- complexTypeName
- String
Nama jenis kompleks.
- collection
- Boolean
Menunjukkan apakah properti mewakili koleksi.
Mengembalikan
Properti yang baru dibuat.
- Atribut
Berlaku untuk
AddComplexProperty(String, Type, Type, String, Boolean)
Menambahkan properti kompleks ke tipe ini.
public Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty AddComplexProperty (string name, Type propertyType, Type complexType, string? complexTypeName = default, bool collection = false);
abstract member AddComplexProperty : string * Type * Type * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
Public Function AddComplexProperty (name As String, propertyType As Type, complexType As Type, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false) As IMutableComplexProperty
Parameter
- name
- String
Nama properti yang akan ditambahkan.
- propertyType
- Type
Jenis properti.
- complexType
- Type
Jenis nilai yang akan ditangguhkan properti.
- complexTypeName
- String
Nama jenis kompleks.
- collection
- Boolean
Menunjukkan apakah properti mewakili koleksi.
Mengembalikan
Properti yang baru dibuat.
Berlaku untuk
AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean)
Menambahkan properti kompleks ke tipe ini.
public Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty AddComplexProperty (string name, Type propertyType, System.Reflection.MemberInfo memberInfo, Type complexType, string? complexTypeName = default, bool collection = false);
abstract member AddComplexProperty : string * Type * System.Reflection.MemberInfo * Type * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
Public Function AddComplexProperty (name As String, propertyType As Type, memberInfo As MemberInfo, complexType As Type, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false) As IMutableComplexProperty
Parameter
- name
- String
Nama properti yang akan ditambahkan.
- propertyType
- Type
Jenis properti.
- memberInfo
- MemberInfo
Anggota jenis CLR yang sesuai.
Pengindeks dengan String parameter dan Object jenis pengembalian dapat digunakan.
- complexType
- Type
Jenis nilai yang akan ditangguhkan properti.
- complexTypeName
- String
Nama jenis kompleks.
- collection
- Boolean
Menunjukkan apakah properti mewakili koleksi.
Mengembalikan
Properti yang baru dibuat.
Berlaku untuk
Entity Framework
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk