zzz projects Entity Framework 6 EF 6
Home EF Core Articles Knowledge Base Online Examples
  • Home
  • EF Core
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework 6 - Knowledge Base (KB)

2 results in tag: default-value

In Entity Framework, how do I define default values?

I've a table with 52 columns in my database and I want to write a function to create a row in that table.... In my case, I don't want to use all columns in that table, so I created my model like this....[Table("CUST_MASTER")] public class CustomerMaster {...
.net c# default-value entity-framework sql-server-2008
asked by Chuck Norris

Entity Framework 6 Code first Default value

is there "elegant" way to give specific property a default value ?...Maybe by DataAnnotations, something like :...[DefaultValue("true")] public bool Active { get; set; } ...Thank you.
default-value ef-code-first entity-framework
asked by marino-krk

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!