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

EF Migrations, Insert value for Text Data Type always has (Size=255) #50

Closed
Blastnsmash opened this issue Mar 1, 2017 · 2 comments
Closed

Comments

@Blastnsmash
Copy link

I'm following a tutorial and using the .UseMySQL extension from Assembly SapientGuardian.EntityFrameworkCore.MySql, Version=7.1.19.0, Culture=neutral, PublicKeyToken=null

I am using the migrations from IdentityServer4 PersistedGrant Migration.

The Table Gets created properly with "text" data type but all inserts clip data column because of the insert statement below. Is there a way to override the insert statement?

info: Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory[1]
Executed DbCommand (5ms) [Parameters=[@p0='?' (Size = 200), @p1='?' (Size = 50), @p2='?' (Size = 200), @p3='?', @P4='?' (Size = 255), @p5='?', @p6='?' (Size = 200)], CommandType='Text', CommandTimeout='30']
INSERT INTO PersistedGrants (Key, Type, ClientId, CreationTime, Data, Expiration, SubjectId)
VALUES (@p0, @p1, @p2, @p3, @P4, @p5, @p6);
dbug: MySQL.Data.Entity.MySQLRelationalConnection[6]
Committing transaction.

@SapientGuardian
Copy link
Owner

I believe this is a dupe of #47. See also: https://github.com/IdentityServer/IdentityServer4.EntityFramework/issues/54

@SapientGuardian
Copy link
Owner

Closing as dupe

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