Ejemplo n.º 1
0
        public Register(string fName, string lName, string email, string password)
        {
            ConnectOfflineDBEntities db = new ConnectOfflineDBEntities();

            User_Details_OfflineTable user = new User_Details_OfflineTable
            {
                iFK_AccountTypeId = 1,
                vcFirstName       = fName,
                vcLastName        = lName,
                vcEmail           = email,
            };

            db.User_Details_OfflineTable.AddOrUpdate(user);
            //db.SaveChanges();
            SubmitAndCatchErrors(ref db);

            var query = from it in db.User_Details_OfflineTable
                        orderby it.vcFirstName
                        select it;

            string text = "";

            foreach (User_Details_OfflineTable v in query)
            {
                text += String.Format("{0} {1} {2} {3}", v.vcFirstName, v.vcLastName, v.vcEmail, v.vcProfilePicturePath);
            }
            MessageBox.Show(text);
        }
Ejemplo n.º 2
0
            public async Task <User_Details_OfflineTable> GetDataAsync()
            {
                User_Details_OfflineTable result = null;

                await ExtractDataAsync().ContinueWith(async(data) =>
                {
                    result = await MapDataAsync(data.Result);

                    return(result);
                });

                return(result);
            }