Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 600 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 600 Bytes
authors title lastmod created license keywords tags categories
dgmjr
README.md
2023-04-02 03:05:33 UTC
2023-03-24-05:58:52
MIT
dgmjr
dgmjr
dgmjr

Interface Generator

You can use this library to generate an interface from an extant class. Let's say you want to create an interface for the DbContext class. You can do that with the following code:

[InterfaceGenerator(typeof(Microsoft.EntityFrameworkCore.DbContext))]
public partial interface IDbContext
{
}

Make sure to mark the interface as partial or it won't work.