{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/7007","repository_url":"https://api.github.com/repos/aspnet/EntityFramework","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/7007/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/7007/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/7007/events","html_url":"https://github.com/aspnet/EntityFramework/issues/7007","id":188910202,"number":7007,"title":"Data Annotations seems doesn't work in derived class ","user":{"login":"BigVan","id":5982966,"avatar_url":"https://avatars.githubusercontent.com/u/5982966?v=3","gravatar_id":"","url":"https://api.github.com/users/BigVan","html_url":"https://github.com/BigVan","followers_url":"https://api.github.com/users/BigVan/followers","following_url":"https://api.github.com/users/BigVan/following{/other_user}","gists_url":"https://api.github.com/users/BigVan/gists{/gist_id}","starred_url":"https://api.github.com/users/BigVan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigVan/subscriptions","organizations_url":"https://api.github.com/users/BigVan/orgs","repos_url":"https://api.github.com/users/BigVan/repos","events_url":"https://api.github.com/users/BigVan/events{/privacy}","received_events_url":"https://api.github.com/users/BigVan/received_events","type":"User","site_admin":false},"labels":[{"id":333904587,"url":"https://api.github.com/repos/aspnet/EntityFramework/labels/type-investigation","name":"type-investigation","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":{"login":"AndriySvyryd","id":6539701,"avatar_url":"https://avatars.githubusercontent.com/u/6539701?v=3","gravatar_id":"","url":"https://api.github.com/users/AndriySvyryd","html_url":"https://github.com/AndriySvyryd","followers_url":"https://api.github.com/users/AndriySvyryd/followers","following_url":"https://api.github.com/users/AndriySvyryd/following{/other_user}","gists_url":"https://api.github.com/users/AndriySvyryd/gists{/gist_id}","starred_url":"https://api.github.com/users/AndriySvyryd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndriySvyryd/subscriptions","organizations_url":"https://api.github.com/users/AndriySvyryd/orgs","repos_url":"https://api.github.com/users/AndriySvyryd/repos","events_url":"https://api.github.com/users/AndriySvyryd/events{/privacy}","received_events_url":"https://api.github.com/users/AndriySvyryd/received_events","type":"User","site_admin":false},"assignees":[{"login":"AndriySvyryd","id":6539701,"avatar_url":"https://avatars.githubusercontent.com/u/6539701?v=3","gravatar_id":"","url":"https://api.github.com/users/AndriySvyryd","html_url":"https://github.com/AndriySvyryd","followers_url":"https://api.github.com/users/AndriySvyryd/followers","following_url":"https://api.github.com/users/AndriySvyryd/following{/other_user}","gists_url":"https://api.github.com/users/AndriySvyryd/gists{/gist_id}","starred_url":"https://api.github.com/users/AndriySvyryd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndriySvyryd/subscriptions","organizations_url":"https://api.github.com/users/AndriySvyryd/orgs","repos_url":"https://api.github.com/users/AndriySvyryd/repos","events_url":"https://api.github.com/users/AndriySvyryd/events{/privacy}","received_events_url":"https://api.github.com/users/AndriySvyryd/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/24","html_url":"https://github.com/aspnet/EntityFramework/milestones/1.2.0","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/milestones/24/labels","id":2044943,"number":24,"title":"1.2.0","description":null,"creator":{"login":"rowanmiller","id":4741851,"avatar_url":"https://avatars.githubusercontent.com/u/4741851?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmiller","html_url":"https://github.com/rowanmiller","followers_url":"https://api.github.com/users/rowanmiller/followers","following_url":"https://api.github.com/users/rowanmiller/following{/other_user}","gists_url":"https://api.github.com/users/rowanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmiller/subscriptions","organizations_url":"https://api.github.com/users/rowanmiller/orgs","repos_url":"https://api.github.com/users/rowanmiller/repos","events_url":"https://api.github.com/users/rowanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmiller/received_events","type":"User","site_admin":false},"open_issues":130,"closed_issues":33,"state":"open","created_at":"2016-10-03T18:11:14Z","updated_at":"2016-11-14T19:18:06Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-11-12T12:52:36Z","updated_at":"2016-11-14T19:18:19Z","closed_at":null,"body":"Hi~\r\nWhen I am using EF core to create `MySQL` table `(using  MySQL.Data.EntityFrameworkCore Package)`, I found some problems that Data Annotations `[Column( TypeName = \"varchar(200)\" ]` seems doesn't work.\r\n\r\n### Steps to reproduce\r\n\r\nHere is my code:\r\n```\r\npublic class BasicObject\r\n{\r\n        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]\r\n        public int Id { set; get; }\r\n\r\n        public string Name { set; get; }\r\n\r\n        [Column(TypeName = \"varchar(200)\")]\r\n        public string Description { set; get; }\r\n}\r\n\r\npublic class Item : BasicObject\r\n{\r\n        public int Type { set; get; }\r\n\r\n        public double Price { set; get; }\r\n        \r\n        public string Image { set; get; }\r\n}\r\n\r\npublic class DBManager : DbContext\r\n{\r\n    public DBManager(DbContextOptions<DBManager> options)\r\n    : base(options)\r\n    { }\r\n\r\n    public DbSet<Item> Items { get; set; }\r\n  \r\n    protected override void OnModelCreating(ModelBuilder modelBuilder)\r\n    {\r\n        modelBuilder.Entity<Item>().ToTable(\"Items\");       \r\n    }\r\n}\r\n```\r\n\r\nWhen the database created, the type of column 'Description' is still varchar(255).\r\n\r\nHowever, when I use 'Fluent API' as follow:\r\n```\r\nmodelBuilder.Entity<Item>().ToTable(\"Items\")\r\n                        .Property(b=>b.Description).HasColumnType(\"varchar(200)\");\r\n```\r\nIt can change the column type to varchar(200).\r\n\r\nSo, Is this a bug ?\r\n\r\n### Further technical details\r\nVisual studio version: 2015-community update3"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/260432930","html_url":"https://github.com/aspnet/EntityFramework/issues/7007#issuecomment-260432930","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/7007","id":260432930,"user":{"login":"rowanmiller","id":4741851,"avatar_url":"https://avatars.githubusercontent.com/u/4741851?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmiller","html_url":"https://github.com/rowanmiller","followers_url":"https://api.github.com/users/rowanmiller/followers","following_url":"https://api.github.com/users/rowanmiller/following{/other_user}","gists_url":"https://api.github.com/users/rowanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmiller/subscriptions","organizations_url":"https://api.github.com/users/rowanmiller/orgs","repos_url":"https://api.github.com/users/rowanmiller/repos","events_url":"https://api.github.com/users/rowanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmiller/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T19:18:19Z","updated_at":"2016-11-14T19:18:19Z","body":"What version of EF Core are you using?"}}
{"actor":{"display_login":"rowanmiller"}}