DbConfiguration.SetPluralizationService-Methode
[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]
Rufen Sie diese Methode vom Konstruktor einer Klasse auf, die von DbConfiguration abgeleitet ist, um den Pluralisierungsdienst festzulegen.
Namespace: System.Data.Entity
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "Pluralization")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "pluralization")> _
Protected Friend Sub SetPluralizationService ( _
pluralizationService As IPluralizationService _
)
'Usage
Dim pluralizationService As IPluralizationService
Me.SetPluralizationService(pluralizationService)
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Pluralization")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "pluralization")]
protected internal void SetPluralizationService(
IPluralizationService pluralizationService
)
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"Pluralization")]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"pluralization")]
protected public:
void SetPluralizationService(
IPluralizationService^ pluralizationService
)
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Pluralization")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "pluralization")>]
member SetPluralizationService :
pluralizationService:IPluralizationService -> unit
function SetPluralizationService(
pluralizationService : IPluralizationService
)
Parameter
- pluralizationService
Typ: System.Data.Entity.Infrastructure.Pluralization.IPluralizationService
Der zu verwendende Pluralisierungsdienst.