コード例 #1
0
        /// <summary>
        /// Initially when the service starts check whether we are running a muti db database or a single instance
        /// </summary>
        /// <returns></returns>
        private static bool CheckIsMultiDB()
        {
            EnterpriseModel.Net.LibConfig.Instance.Config = new CooperAtkins.NotificationClient.Generic.DataAccess.EnterpriseModelConfig(ConfigurationManager.ConnectionStrings["SqlConnectionString"].ConnectionString);
            InstanceType instanceType = new InstanceType();

            instanceType = instanceType.Execute();
            return(instanceType.IsMultiDB);
        }