public void Test() { DatabaseAdapterFactory factory = new DatabaseAdapterFactory(); IDatabaseAdapter adapterA = factory.Create("Oracle"); IDatabaseAdapter adapterB = factory.Create("SqlServer"); adapterB.SetData(adapterA.GetData()); }
public void Test() { DatabaseAdapterFactory factory = new DatabaseAdapterFactory(); IDatabaseAdapter a = factory.Create("oracle"); IDatabaseAdapter b = factory.Create("sqlserver"); b.SetData(a.GetData()); }