Skip to content

Instantly share code, notes, and snippets.

View BrianJVarley's full-sized avatar

Brian Varley BrianJVarley

View GitHub Profile
using MongoDBApp.DAL;
using MongoDBApp.Models;
using MongoDBApp.Services;
using MongoDBApp.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Microsoft.Practices.Prism.Commands;
using MongoDBApp.Common;
using MongoDBApp.Models;
using MongoDBApp.Services;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
namespace MongoDBApp.DAL
{
public class CustomerRepository : IRepository<CustomerModel>
{
//Database connection string
private const string connectionString = "mongodb://janedoe:password123;@ds00000.mongolab.com:1234/orders";
private static readonly CustomerRepository instance = new CustomerRepository();
private static List<Country> countryList = new List<Country>();
public void LoadDb()
{
var countrycollection = StartCountryConnection();
try
{
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MongoDBApp.Utility
{
public class Messenger
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MongoDBApp.Utility
{
public class Messenger
using MongoDBApp.Services;
using MongoDBApp.ViewModels;
using MongoDBApp.Views;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
public partial class App : Application
{
private static IDialogService dialogService = new DialogService();
private static IAuthenticationService authoService = new AuthenticationService();
private LoginViewModel loginViewModel { get; set; }
protected override void OnStartup(StartupEventArgs e)
{
using MongoDBApp.Services;
using MongoDBApp.ViewModels;
using MongoDBApp.Views;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using MongoDBApp.Services;
using MongoDBApp.Utility;
using MongoDBApp.ViewModels;
using MongoDBApp.Views;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;