changed all lambda experssion variables to z from various where appropriate

This commit is contained in:
2020-05-18 19:42:42 +00:00
parent 3a359f1052
commit fd8c489914
65 changed files with 431 additions and 557 deletions

View File

@@ -354,7 +354,7 @@ namespace AyaNova.Util
{
//check ref count of file
var count = await ct.FileAttachment.LongCountAsync(w => w.StoredFileName == fileAttachmentToBeDeleted.StoredFileName);
var count = await ct.FileAttachment.LongCountAsync(z => z.StoredFileName == fileAttachmentToBeDeleted.StoredFileName);
//Store in DB
ct.FileAttachment.Remove(fileAttachmentToBeDeleted);

View File

@@ -565,7 +565,7 @@ namespace AyaNova.Core
{
try
{
var CurrentInDbKeyRecord = await ct.License.OrderBy(x => x.Id).FirstOrDefaultAsync();
var CurrentInDbKeyRecord = await ct.License.OrderBy(z => z.Id).FirstOrDefaultAsync();
if (CurrentInDbKeyRecord == null)
throw new ApplicationException("E1020 - Can't install key, no key record found");
@@ -681,13 +681,13 @@ EQIDAQAB
//FEATURES
Newtonsoft.Json.Linq.JArray p = (Newtonsoft.Json.Linq.JArray)token.SelectToken("Key.Features");
for (int x = 0; x < p.Count; x++)
for (int z = 0; z < p.Count; z++)
{
LicenseFeature lf = new LicenseFeature();
lf.Feature = (string)p[x].SelectToken("Name");
if (p[x].SelectToken("Count") != null)
lf.Feature = (string)p[z].SelectToken("Name");
if (p[z].SelectToken("Count") != null)
{
lf.Count = (long)p[x].SelectToken("Count");
lf.Count = (long)p[z].SelectToken("Count");
}
else
{

View File

@@ -85,15 +85,7 @@ namespace AyaNova.Util
//Erase all the data except for the license, schema and the manager user
await DbUtil.EmptyBizDataFromDatabaseForSeedingOrImportingAsync(log);
apiServerState.SetOpsOnly("Seeding database with sample data");
// //Set the default user options of the manager account
// using (var cct = ServiceProviderProvider.DBContext)
// {
// var mgr = await cct.UserOptions.FirstAsync(m => m.Id == 1);
// mgr.TimeZoneOffset = timeZoneOffset;
// await cct.SaveChangesAsync();
// }
//WIDGET sample form customization
{

View File

@@ -28,7 +28,7 @@ namespace AyaNova.Util
if (global == null)
{
//fetch or create as not provided (meaning this was called from Startup.cs)
global = ct.GlobalBizSettings.FirstOrDefault(m => m.Id == 1);
global = ct.GlobalBizSettings.FirstOrDefault(z => z.Id == 1);
if (global == null)
{
global = new GlobalBizSettings();