public void Create() { var extraProperty = myDatabaseContext.Get(something); var myNewObject = _myFactory.Create(extraProperty); _myDatabaseContext.Add(myNewObject); _myDatabaseContext.SaveChanges(); }
public void Add(Entity entity) { context.Add(entity); }