أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
considering this segment of code :
Employee emp=new Employee{ name="EmpName",position="develoeper"};
Entities db=new Entities();
db.Employees.Add(emp);
db.SaveChanges();
int id=emp.Id;
//what's the value of id when using oracle database ??? is this value different when using sql server ?? how to work around this problem ??
Yes is compatibility , give you the identity values after successfully
It will give you the identity values after successfully insertion
هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟