CopyEntities() public method

public CopyEntities ( ) : void
return void
        private void Populate()
        {
            var sourceContext = new Northwind.EntityFramework.ModelFirst.MsSql.NorthwindMsSqlContext(ConfigurationManager.ConnectionStrings["NorthwindContext.EF.MF.MsSql"].ConnectionString);

            var entityCloner = new EntityCloner(sourceContext, new InMemoryEntityCloner(this));
            entityCloner.CopyEntities();
        }
示例#2
0
 public void Populate(object sourceContext)
 {
     var entityCloner = new EntityCloner(sourceContext, new MongoEntityCloner(this));
     entityCloner.CopyEntities();
 }