Exemplo n.º 1
0
 protected static DataAccessConfiguration GetConfig(string instanceName)
 {
     return(DataAccessConfigurationMangement.GetDataAccessConfiguration(instanceName.Trim()));
 }
Exemplo n.º 2
0
        /// <summary>
        /// 根据名称获取数据访问
        /// </summary>
        /// <param name="instanceName"></param>
        /// <returns></returns>
        public static DataAccessBroker Instance(string instanceName)
        {
            DataAccessConfiguration config = DataAccessConfigurationMangement.GetDataAccessConfiguration(instanceName.Trim());

            return(Instance(config));
        }