Exemple #1
0
        public virtual void Configure()
        {
            foreach (ImportTarget target in Config.Targets)
            {
                foreach (Type type in Config.GetAllTableTypes())
                {
                    MethodInfo  methodInfo = typeof(SoBase <>).MakeGenericType(type).GetMethod("FromXmlDocument");
                    IEnumerable sequence   =
                        (IEnumerable)methodInfo.Invoke(null, new object[] { target.Path, target.Name });
                    EnumerableDataReader reader = new EnumerableDataReader(sequence);

                    CreateBulkInsertTask(type.Name, reader, target);
                }

                PrepareDatabase(target.Schema);
            }
        }