-
Notifications
You must be signed in to change notification settings - Fork 687
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
Can't use Unique and Length with MySQL database #316
Comments
Any error messages? What versions of Fluent and NHibernate are you using? |
no error messages. Just doesn't create the table. Nhibernate 4.0.0.4000 On Mon, Aug 3, 2015 at 12:56 PM, Gleb Chermennov [email protected]
|
Here is the offending object attached. If you change the line in EventMap
to It will not create the table and you will not get an error. On Mon, Aug 3, 2015 at 1:03 PM, Justin King [email protected] wrote:
using System; namespace SMDC.GIIEP.Models.Entities
} using FluentNHibernate.Mapping; namespace SMDC.GIIEP.Models.Mappings
} |
ok, let me try and reproduce that |
Yep, I can confirm this is happening in 2.x (and it's not just MySQL). Let |
Surprisingly, the problem is not with Fluent itself - the xml mapping that |
Awesome. Good deal. Thanks. |
I can't use Unique and Length with MySQL database. It will work with one or the other, but not both.
Map(x=> x.Name).Length(4001).Unique()
won't event create the table for that classThe text was updated successfully, but these errors were encountered: