Skip to content

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

Description

@iMaxSys

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions