{"action":"opened","issue":{"url":"https://api.github.com/repos/volkanceylan/Serenity/issues/80","labels_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/80/comments","events_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/80/events","html_url":"https://github.com/volkanceylan/Serenity/issues/80","id":124083823,"number":80,"title":"Sergen not generating correct datatypes from db tables","user":{"login":"jsbUSMC","id":11762092,"avatar_url":"https://avatars.githubusercontent.com/u/11762092?v=3","gravatar_id":"","url":"https://api.github.com/users/jsbUSMC","html_url":"https://github.com/jsbUSMC","followers_url":"https://api.github.com/users/jsbUSMC/followers","following_url":"https://api.github.com/users/jsbUSMC/following{/other_user}","gists_url":"https://api.github.com/users/jsbUSMC/gists{/gist_id}","starred_url":"https://api.github.com/users/jsbUSMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsbUSMC/subscriptions","organizations_url":"https://api.github.com/users/jsbUSMC/orgs","repos_url":"https://api.github.com/users/jsbUSMC/repos","events_url":"https://api.github.com/users/jsbUSMC/events{/privacy}","received_events_url":"https://api.github.com/users/jsbUSMC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-28T15:55:01Z","updated_at":"2015-12-28T15:55:01Z","closed_at":null,"body":"First of all, I love this project, and it's helping me immensely with a personal project of mine. However, I've noticed a possible issue I believe with sergen. I've created several tables using FluentMigrator syntax and the db migrations as you've shown in the tutorial, which works great. The problem I'm seeing seems to be when I use sergen to create the code from those tables. Specifically, with regards to time. My migration will look like: \r\n\r\n```c#\r\n// ...\r\nCreate.Table(\"Call\").InSchema(\"ops\")\r\n    .WithColumn(\"CallId\").AsInt32().PrimaryKey().Identity().NotNullable()\r\n    .WithColumn(\"CallTime\").AsTime().NotNullable()\r\n// ...\r\n```\r\n\r\nAnd when I check the table in SQL Server Object Explorer it correctly displays the column datatype property as `time(7)`. I am going to correct that to show the proper scale `time(0)` but that isn't the issue. What happens is after I generate the code from the table using `sergen.exe` I will see the following in `CallRow.cs`:\r\n\r\n```c#\r\n// ...\r\n[DisplayName(\"Call Time\")]\r\npublic Stream CallTime\r\n// ...\r\n```\r\n\r\nNow I know that I can go and change this manually and then rebuild the project and it should work, but I was wondering if we could figure out a fix for `sergen.exe` so it doesn't actually generate that code. I didn't realize it until I built the project and then received an unhandled user exception that said something about not being able to convert `varbinary`. I have a lot of occurrences in many tables of time column. I really appreciate you taking the time to address this issue, and I want to reiterate again how thankful I am that you've put so much hard work into this project!"}}