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: identity-column

Getting the value of an identity column after entering it in Entity Framework

I'm using EF4. I want to insert a new MyObject into the database. MyObject has two fields: ...Id: int (Identity) and Name: string...As I've seen in documentation Entity Framework is supposed to set MyObject.Id to the value generated by database after th...
entity-framework identity-column
asked by nima

EntityFramework, C#, ExecuteStoreCommand returns -1?

I wanna get the next automatically incrementing primary key, ...Here... I understood to use T-SQL for doing that. So I wrote the following method :...public int GetLastNewsID() { const string command = @"SELECT IDENT_CURRENT ('{0}') AS Current_Identi...
c# entity-framework identity-column sql tsql
asked by Mohammad Dayyan

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!