Skip to content

张帅,把范型仓储直接注入到容器吧 #136

@iMaxSys

Description

@iMaxSys

张帅,把范型仓储直接注入到core的DI容器吧,别用TContext.GetService和new了,你可以做到的;)
类似
services.AddScoped(typeof(IRepository<>), typeof(Repository<>));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions