コード例 #1
0
ファイル: CrmDbCommand.cs プロジェクト: noriy0363/CrmAdo
        public CrmDbCommand(CrmDbConnection connection, IOperationExecutor crmCommandExecutor, ICrmOperationProvider organisationCommandProvider)
        {
            if (crmCommandExecutor == null)
            {
                throw new ArgumentNullException("crmCommandExecutor");
            }

            if (organisationCommandProvider == null)
            {
                throw new ArgumentNullException("organisationCommandProvider");
            }

            _DbConnection                = connection;
            _CrmCommandExecutor          = crmCommandExecutor;
            _OrganisationCommandProvider = organisationCommandProvider;
            _CommandType         = CommandType.Text;
            _ParameterCollection = new CrmParameterCollection();
        }
コード例 #2
0
ファイル: CrmDbCommand.cs プロジェクト: YOTOV-LIMITED/CrmAdo
        public CrmDbCommand(CrmDbConnection connection, IOperationExecutor crmCommandExecutor, ICrmOperationProvider organisationCommandProvider)
        {
            if (crmCommandExecutor == null)
            {
                throw new ArgumentNullException("crmCommandExecutor");
            }

            if (organisationCommandProvider == null)
            {
                throw new ArgumentNullException("organisationCommandProvider");
            }

            _DbConnection = connection;
            _CrmCommandExecutor = crmCommandExecutor;
            _OrganisationCommandProvider = organisationCommandProvider;
            _CommandType = CommandType.Text;
            _ParameterCollection = new CrmParameterCollection();
        }