.net - Entity Framework: custom primary key -


how can create custom primary key auto increment in entity framework?

primary key format: [month][year][index]

the [index] value reset every month.

example: month: primary key start 082013001, until 082013999 next month: 092013001, until 092013999

if ef can't have custom primary key, best way me achieve this?


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -