public void CreateAutoInsecure(int numToAdd)
 {
     using (var plainDbContext = new PlainDbContext())
     {
         Console.Write("[Non-Secure] Adding user records " + Environment.NewLine + "[");
         for (int i = 0; i < numToAdd; i++)
         {
             plainDbContext.Users.Add(CreateRandomUser());
             Console.Write(".");
         }
         Console.WriteLine("]");
         plainDbContext.SaveChanges();
     }
 }
 public void CreateAutoInsecure(int numToAdd)
 {
     using (var plainDbContext = new PlainDbContext())
     {
         Console.Write("[Non-Secure] Adding user records " + Environment.NewLine + "[");
         for (int i = 0; i < numToAdd; i++)
         {
             plainDbContext.Users.Add(CreateRandomUser());
             Console.Write(".");
         }
         Console.WriteLine("]");
         plainDbContext.SaveChanges();
     }
 }
        private int ReadAllInsecure(bool printToScreen)
        {
            Console.WriteLine("This skips Crypteron decryption, so data is unreadable by anyone");
            int totalEntries = 0;

            using (var plainDbContext = new PlainDbContext())
            {
                foreach (var o in plainDbContext.Users)
                {
                    totalEntries++;
                    if (printToScreen)
                    {
                        DisplayEntity(o, true);
                    }
                }
            }
            return(totalEntries);
        }
 private int ReadAllInsecure(bool printToScreen)
 {
     Console.WriteLine("This is WRONG usage. Without CipherDB, data is secured and is undecipherable by anyone - even SQL server itself.");
     int totalEntries = 0;
     using (var plainDbContext = new PlainDbContext())
     {
         foreach (var o in plainDbContext.Users)
         {
             totalEntries++;
             if (printToScreen)
                 DisplayEntity(o, true);
         }
     }
     return totalEntries;
 }