Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: Model and NCHAR

$
0
0
I wanna create a model class with a property type String and generate column with NCHAR(11), I using Fluent API for do this
    protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<Person>().Property(x => x.CPF).HasMaxLength(11).IsFixedLength();
        }

Viewing all articles
Browse latest Browse all 1793

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>