public void Create()
    {
        var extraProperty = myDatabaseContext.Get(something);
        var myNewObject   = _myFactory.Create(extraProperty);

        _myDatabaseContext.Add(myNewObject);
        _myDatabaseContext.SaveChanges();
    }
Example #2
0
 public void Add(Entity entity)
 {
     context.Add(entity);
 }