ModelExtensions.IsShared(IModel, Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets whether the CLR type is used by shared type entities in the model.
[System.Diagnostics.DebuggerStepThrough]
public static bool IsShared (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[<System.Diagnostics.DebuggerStepThrough>]
static member IsShared : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> bool
<Extension()>
Public Function IsShared (model As IModel, type As Type) As Boolean
Parameters
- model
- IModel
The model to find the entity type in.
- type
- Type
The CLR type.
Returns
Whether the CLR type is used by shared type entities in the model.
- Attributes
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework