Skip to main content

Definition

Assembly: Microsoft.EntityFrameworkCore.dll Namespace: Microsoft.EntityFrameworkCore

Syntax

Summary

This type is defined in Microsoft.EntityFrameworkCore.

Remarks

See Microsoft documentation for more information about the rest of the API.

Methods

AddMcpTasksTable Extension

Extension method from Microsoft.EntityFrameworkCore.McpEssentials_EntityFrameworkCore_ModelBuilderExtensions
Maps McpTaskEntity to table McpTasks. Call from the host OnModelCreating.

Syntax

Parameters

Returns

Type: Microsoft.EntityFrameworkCore.ModelBuilder The same modelBuilder.

Exceptions

Remarks

Use this when the project that owns the DbContext already references this package. Mapping lives with the rest of the model. Use DbContextOptionsBuilder.AddMcpTasksTable from AddDbContext when the context type lives in a library that must not reference this package. Pick one.

AddMcpTasksTable Extension

Extension method from Microsoft.EntityFrameworkCore.McpEssentials_EntityFrameworkCore_ModelBuilderExtensions
Maps McpTaskEntity to tableName in schema. Call from the host OnModelCreating.

Syntax

Parameters

Returns

Type: Microsoft.EntityFrameworkCore.ModelBuilder The same modelBuilder.

Exceptions

Remarks

Use this when the project that owns the DbContext already references this package. Mapping lives with the rest of the model. Use DbContextOptionsBuilder.AddMcpTasksTable from AddDbContext when the context type lives in a library that must not reference this package. Pick one.