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

Escape in runner, not in mapping provider #171

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

djechelon
Copy link
Contributor

Fixed escape and dbo problem in MySQL by restructuring

Conflicts:
	Source/EntityFramework.Extended/Mapping/MetadataMappingProvider.cs
string tableName;
if (entityMap.SchemaName != null)
{
tableName = new StringBuilder(50)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not what StringBuilder is for... you use it when you have multiple varying things to concatenate in a loop.

In this case, much better to simply do the concatenation by simple + operator which C# compiler will compile as a String.Concat call.

@djechelon
Copy link
Contributor Author

I agree with @IDisposable 👍
Pushing to my branch asap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants