Skip to content

Instantly share code, notes, and snippets.

@obegendi
Created March 11, 2018 21:37
Show Gist options
  • Save obegendi/e44f7265b7bdb00cf9154a10cd80d497 to your computer and use it in GitHub Desktop.
Save obegendi/e44f7265b7bdb00cf9154a10cd80d497 to your computer and use it in GitHub Desktop.
var customer = new Customer{
TCKN = parameters.Tckn,
Email = parameters.Email,
Phone = parameters.Phone,
Income = parameters.Income,
JobID = parameters.JobID
};
db.Customer.Add(customer);
var application = new PlApplication
{
SelectedBankID = hplSelection.BankID,
CreateDate = DateTime.Now,
CustomerID = customer.CustomerID,
CityID = parameters.CityID,
BranchID = parameters.BranchID,
};
db.Application.Add(application);
db.SaveChanges();
@cemseckin
Copy link

bu kod bloğunda application daki customer.CustomerID boş gelecektir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment