コード例 #1
0
        /// <summary>
        /// Deserialize a DataSource object
        /// </summary>
        /// <param name="node"></param>
        /// <returns></returns>
        public static DataSource Deserialize(XmlNode node)
        {
            DataSource dataSource = new DataSource();
            NameValueCollection prop = NodeUtils.ParseAttributes(node);

            dataSource.ConnectionString = prop["connectionString"];
            dataSource.Name = prop["name"];

            return dataSource;
        }
コード例 #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="properties"></param>
 /// <param name="resources"></param>
 public void Configure(NameValueCollection properties, IDictionary resources)
 {
     _dataSource = (DataSource) resources["DataSource"];
 }
コード例 #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="daoManager"></param>
 /// <param name="dataSource"></param>
 public SimpleDaoSession(DaoManager daoManager, DataSource dataSource)
     : base(daoManager)
 {
     _dataSource = dataSource;
 }