{"action":"created","issue":{"url":"https://api.github.com/repos/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/688","repository_url":"https://api.github.com/repos/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql","labels_url":"https://api.github.com/repos/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/688/labels{/name}","comments_url":"https://api.github.com/repos/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/688/comments","events_url":"https://api.github.com/repos/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/688/events","html_url":"https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/688","id":363076407,"node_id":"MDU6SXNzdWUzNjMwNzY0MDc=","number":688,"title":"Question：ModelBuilder Property HasColumnType(\"nvarchar(50)\") don't work","user":{"login":"IMJacky","id":6263957,"node_id":"MDQ6VXNlcjYyNjM5NTc=","avatar_url":"https://avatars0.githubusercontent.com/u/6263957?v=4","gravatar_id":"","url":"https://api.github.com/users/IMJacky","html_url":"https://github.com/IMJacky","followers_url":"https://api.github.com/users/IMJacky/followers","following_url":"https://api.github.com/users/IMJacky/following{/other_user}","gists_url":"https://api.github.com/users/IMJacky/gists{/gist_id}","starred_url":"https://api.github.com/users/IMJacky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IMJacky/subscriptions","organizations_url":"https://api.github.com/users/IMJacky/orgs","repos_url":"https://api.github.com/users/IMJacky/repos","events_url":"https://api.github.com/users/IMJacky/events{/privacy}","received_events_url":"https://api.github.com/users/IMJacky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-24T09:47:13Z","updated_at":"2018-09-25T02:48:14Z","closed_at":"2018-09-25T02:48:15Z","author_association":"NONE","body":"### Steps to reproduce\r\nthis my code：\r\n`          modelBuilder.Entity<ApplicationUser>(m =>\r\n            {\r\n                m.Property(t => t.UserName)\r\n                        .IsRequired()\r\n                        .HasColumnType(\"nvarchar(50)\");\r\n\r\n                m.Property(t => t.Email)\r\n                        .HasColumnType(\"nvarchar(50)\");\r\n\r\n                m.Property(t => t.Password)\r\n                        .IsRequired()\r\n                        .HasColumnType(\"nvarchar(50)\");\r\n            });`\r\n\r\n### The issue\r\nwhen i run project and init database，nvarchar(50) can't set in mysql datafield on \"UserName\"，instead of varchar(50)，what should i do correctly，ths！\r\n\r\n### Further technical details\r\n\r\nMySQL version: 8.0.12\r\nOperating system: Windows 7\r\nPomelo.EntityFrameworkCore.MySql version:2.1.2"},"comment":{"url":"https://api.github.com/repos/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/comments/424189943","html_url":"https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/688#issuecomment-424189943","issue_url":"https://api.github.com/repos/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/688","id":424189943,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDE4OTk0Mw==","user":{"login":"mguinness","id":14002844,"node_id":"MDQ6VXNlcjE0MDAyODQ0","avatar_url":"https://avatars1.githubusercontent.com/u/14002844?v=4","gravatar_id":"","url":"https://api.github.com/users/mguinness","html_url":"https://github.com/mguinness","followers_url":"https://api.github.com/users/mguinness/followers","following_url":"https://api.github.com/users/mguinness/following{/other_user}","gists_url":"https://api.github.com/users/mguinness/gists{/gist_id}","starred_url":"https://api.github.com/users/mguinness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mguinness/subscriptions","organizations_url":"https://api.github.com/users/mguinness/orgs","repos_url":"https://api.github.com/users/mguinness/repos","events_url":"https://api.github.com/users/mguinness/events{/privacy}","received_events_url":"https://api.github.com/users/mguinness/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T02:48:14Z","updated_at":"2018-09-25T02:48:14Z","author_association":"COLLABORATOR","body":"See [Cannot create NVARCHAR column in MariaDb/Mysql](https://stackoverflow.com/questions/45708349/cannot-create-nvarchar-column-in-mariadb-mysql).\r\n\r\n> NVARCHAR is a synonym for VARCHAR in MySQL/MariaDB. But you need to add the CHARACTER SET utf8mb4 to be sure that you get full UTF-8 support."}}
{"actor":{"display_login":"mguinness"}}