Exemplo n.º 1
0
 public override string WriteOneLine()
 {
     return(entity.Id.ToString() + ";" +
            entity.Name + ";" +
            EncryptionDecryption.EncriptPassword(entity.Password.ToString()) + ";" +
            entity.Address);
 }
 private void ExportCustomers(IEnumerable <Customer> listAllCustomers)
 {
     foreach (Customer customer in listAllCustomers)
     {
         customer.Password = EncryptionDecryption.EncriptPassword(customer.Password);
         dbContext.Set <Customer>().Add(customer);
     }
 }