Skip to content

Instantly share code, notes, and snippets.

@kelumKP
Created February 28, 2021 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelumKP/166baf49b2aab28f942105476c757e8e to your computer and use it in GitHub Desktop.
Save kelumKP/166baf49b2aab28f942105476c757e8e to your computer and use it in GitHub Desktop.
EFModule class which is extending Module class
public class EFModule : Module
{
protected override void Load(ContainerBuilder builder)
{
try
{
builder.RegisterType(typeof(TestDBContext)).As(typeof(IContext)).InstancePerLifetimeScope();
}
catch (Exception ex)
{
throw ex;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment