Appleseed.Base.Web/UserView.aspx.cs
/// <summary>
/// Collections the list data bind.
/// </summary>
Collections the list data bind.
Collections the list data bind .
void CollectionList_DataBind(){
			MongoClient client = new MongoClient ();
			var database = client.GetDatabase ("test");
			var collection = database.GetCollection<BaseCollectionItem> ("CollectionItems");
			mylog.Info ("Connected to MongoDB ");
			lblCount.Text = lvCollectionItems.Items.Count.ToString();
		}
void CollectionList_DataBind ( ) { MongoClient client = new MongoClient ( ) ; var database = client . GetDatabase ( " " ) ; var collection = database . GetCollection < BaseCollectionItem > ( " " ) ; mylog . Info ( " " ) ; lblCount . Text = lvCollectionItems . Items . Count . ToString ( ) ; }
Collections the list data bind.
Collections the list data bind .
//TODO: bind list view to the items in the DB /*Task.Run (async () =>  {
				//TODO: retrieve data from mongodb
				var items = await collection.Find (x => x.ItemTitle != "").ToListAsync ();
				mylog.Info ("Retreive Information from Database");
				lvCollectionItems.DataSource = items;
				lvCollectionItems.DataBind();
			}).Wait ();*/ //TODO: bind count to the number of items in the DB 