.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

ModelDifference.ContextId Property

Specifies the context identifier of the current ModelDifference object that allows distinguishing model differences designed for different applications using the same database.

Namespace: DevExpress.Persistent.BaseImpl.EF

Assemblies: DevExpress.Persistent.BaseImpl.EF.v21.1.dll, DevExpress.Persistent.BaseImpl.EFCore.v21.1.dll


public string ContextId { get; set; }

Property Value

Type Description

A string which is the context identifier.


For example, you can use the “Win” identifier for the WinForms application and “Web” - for ASP.NET Web Forms in order to store WinForms and ASP.NET Web Forms model differences separately. You can pass the contextId parameter to the ModelDifferenceDbStore constructor to specify the current context when setting up the database storage for model differences.


See Also