My user class

public class User : BaseObject<int>
    {
        public User()
        {
            EmailPrivacy = new int[] { 1, 2, 3, 4, 5, 6, 7 };
        }

        public virtual string Name { get; set; }
        public virtual string Email { get; set; }
       public virtual string PassWord { get; set; }
        public virtual int[] EmailPrivacy { get; set; }
 }

public class UserMap : ClassMap<User>
    {
        public UserMap()
        {
            Table("user");
            LazyLoad();
            Id(x => x.Id).GeneratedBy.Identity().Column("Id");
            Map(x => x.Name).Column("Name").Not.Nullable();
            Map(x => x.Email).Column("Email").Not.Nullable();
            Map(x => x.PassWord).Column("Password").Not.Nullable();
            Map(x => 
x.EmailPrivacy).Column("EmailPrivacy").Not.Nullable().Default(new int[] { 
1, 2, 3, 4, 5, 6, 7 }.ToString());
        }
    }


But it fails when project starts, the field is not generated.

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fluent-nhibernate+unsubscr...@googlegroups.com.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
Visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to