Beispiel #1
0
        /// <summary>
        /// 获取领域模型结果集映射
        /// </summary>
        /// <param name="model">领域模型</param>
        /// <returns>领域模型结果集映射</returns>
        public ResultMapping GetResultMapping(DomainModel.Spi.DomainModel model)
        {
            if (model == null)
            {
                throw new ArgumentNullException("ResultMappingService.GetResultMapping.model");
            }

            return(ResultMappingFactory.GetInstance().CreateOrGetResultMapping(model));
        }
        /// <summary>
        /// 获取结果集映射实例
        /// </summary>
        /// <returns>结果集映射实例</returns>
        public static ResultMappingFactory GetInstance()
        {
            if (instance == null)
            {
                lock (syncObj)
                {
                    if (instance == null)
                    {
                        instance = new ResultMappingFactory();
                    }
                }
            }

            return(instance);
        }