Ejemplo n.º 1
0
 public static DBAccount GetInstance()
 {
     return (_Instance != null) ? _Instance : _Instance = new DBAccount();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns null if account not found
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Account GetAccount(int id)
        {
            DBAccount a = _galacticObjectContext.Accounts.Find(id);

            return(a != null ? new Account(a) : null);
        }