コード例 #1
0
        public StoredProcedure(DatabaseTypes dalAssemblyName, ConnectionStringHelper connectionString)
            : base(dalAssemblyName, connectionString)//, Model.StoredProcedure.StoredProcedurePrefixes)
        {
            IStoredProcedure dal = DALFactory.DataAccess.CreateStoredProcedure(DalAssemblyName, ConnectionString);

            Model.StoredProcedure[] storedProcedures = dal.GetStoredProcedures();
            //InitiateAlias(storedProcedures);
            //this.ErrorMessages.AddRange(dal.
            InitialCreateFilters(storedProcedures);

            foreach (Model.StoredProcedure sp in storedProcedures)
            {
                foreach (string error in sp.Errors)
                {
                    ErrorMessages.Add(error);
                }
            }
            _scriptObjects = new List <Model.StoredProcedure>(storedProcedures);
        }