ConventionPropertyExtensions.SetScale 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.
Mengatur skala data yang diizinkan dalam properti ini. Misalnya, jika properti adalah maka Decimal ini adalah jumlah maksimum tempat desimal.
public static int? SetScale (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, int? scale, bool fromDataAnnotation = false);
static member SetScale : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Function SetScale (property As IConventionProperty, scale As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)
Parameter
- property
- IConventionProperty
Properti .
- fromDataAnnotation
- Boolean
Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.
Mengembalikan
Berlaku untuk
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.
Entity Framework