/// <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;
        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="properties"></param>
 /// <param name="resources"></param>
 public void Configure(NameValueCollection properties, IDictionary resources)
 {
     _dataSource = (DataSource) resources["DataSource"];
 }
Exemplo n.º 3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="daoManager"></param>
 /// <param name="dataSource"></param>
 public SimpleDaoSession(DaoManager daoManager, DataSource dataSource)
     : base(daoManager)
 {
     _dataSource = dataSource;
 }