Example #1
0
        /// <summary>
        /// Builds the parameter maps.
        /// </summary>
        /// <param name="store">The store.</param>
        private void BuildParameterMaps(IConfigurationStore store)
        {
            for (int i = 0; i < store.ParameterMaps.Length; i++)
            {
                IConfiguration parameterMapConfig = store.ParameterMaps[i];
                ParameterMap   parameterMap       = ParameterMapDeSerializer.Deserialize(modelStore.DataExchangeFactory, parameterMapConfig, modelStore);

                BuildParameterProperties(parameterMap, parameterMapConfig);

                modelStore.AddParameterMap(parameterMap);
            }
        }
Example #2
0
        /// <summary>
        /// Builds the parameter maps.
        /// </summary>
        /// <param name="store">The store.</param>
        private void BuildParameterMaps(IConfigurationStore store)
        {
            /*parameterMap节点信息格式
             *      <parameterMap id="account-via-output" class ="Account">
             *              <parameter property="Id" column="Account_ID" direction="InputOutput" />
             *              <parameter property="FirstName" column="Account_FirstName" />
             *              <parameter property="LastName" column="Account_LastName" />
             *               <parameter property="EmailAddress" column="Account_Email" nullValue="*****@*****.**"/>
             *   </parameterMap>
             */
            for (int i = 0; i < store.ParameterMaps.Length; i++)
            {
                IConfiguration parameterMapConfig = store.ParameterMaps[i];//parameterMap节点配置信息类
                ParameterMap   parameterMap       = ParameterMapDeSerializer.Deserialize(modelStore.DataExchangeFactory, parameterMapConfig, modelStore);

                //处理parameterMap的子节点
                BuildParameterProperties(parameterMap, parameterMapConfig);

                modelStore.AddParameterMap(parameterMap);
            }
        }