Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add InMemory Support to enable testing #34

Closed
radderz opened this issue Feb 18, 2021 · 3 comments
Closed

Add InMemory Support to enable testing #34

radderz opened this issue Feb 18, 2021 · 3 comments

Comments

@radderz
Copy link

radderz commented Feb 18, 2021

Would it be possible to get these same generalized exceptions using the "InMemory" efcore option?

@Giorgi
Copy link
Owner

Giorgi commented Feb 18, 2021

@radderz Does the in-memory provider throw exception for validations that fail (such as length, unique, and so on). If the does it might be possible to get the same exceptions but I think it doesn't. It definitely doesn't validate requiredness but it will be added in EF Core 6: dotnet/efcore#10613

@radderz
Copy link
Author

radderz commented Feb 18, 2021

I see that the in memory database isn't a relation database which is not what I expected, I can probably use an in memory sqlite instance to do the same and you already have an sqlite version.

@Giorgi
Copy link
Owner

Giorgi commented Feb 18, 2021

Yes, in-memory SQLite is probably a better choice for testing.

@Giorgi Giorgi closed this as completed Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants