Rename ConcurrencyToken to Concurrency
This commit is contained in:
@@ -82,7 +82,7 @@ namespace AyaNova.Models
|
||||
{
|
||||
//Any object that has a concurrencytoken field
|
||||
//set it up to work properly with PostgreSQL
|
||||
if (property.Name == "ConcurrencyToken")
|
||||
if (property.Name == "Concurrency")
|
||||
{
|
||||
property.SetColumnName("xmin");
|
||||
property.SetColumnType("xid");
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace AyaNova.Models
|
||||
public class Contract
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class Customer
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace AyaNova.Models
|
||||
public class DataListView
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public long UserId { get; set; }//only relevant if non-public for fetching either in list or single (public true OR userid matches)
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.Models
|
||||
public class Event
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public DateTime Created { get; set; }
|
||||
[Required]
|
||||
public long UserId { get; set; }
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace AyaNova.Models
|
||||
public class FileAttachment
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace AyaNova.Models
|
||||
public class FormCustom
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required, MaxLength(255)]
|
||||
public string FormKey { get; set; }//max 255 characters ascii set
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace AyaNova.Models
|
||||
public class GlobalBizSettings
|
||||
{
|
||||
public long Id { get; set; }//this is always 1 as there is only ever one single global biz object
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
//Global settings
|
||||
//Picklist and other searches override the normal case insensitive value
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class HeadOffice
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class LoanUnit
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace AyaNova.Models
|
||||
|
||||
[Required]
|
||||
public DateTime Created { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
// [Required]
|
||||
// public long O wnerId { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class PM
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public uint Serial { get; set; }
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.Models
|
||||
public class PMItem
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class PMTemplate
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class PMTemplateItem
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class Part
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace AyaNova.Models
|
||||
public class PickListTemplate
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
public string Template { get; set; }//JSON fragment of picklist template
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class Project
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class PurchaseOrder
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.Models
|
||||
public class Quote
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public uint Serial { get; set; }
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.Models
|
||||
public class QuoteItem
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class QuoteTemplate
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class QuoteTemplateItem
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace AyaNova.Models
|
||||
public class SearchDictionary
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required, MaxLength(255)]
|
||||
public string Word { get; set; }//max 255 characters ascii set
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace AyaNova.Models
|
||||
public class SearchKey
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
|
||||
[Required]
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace AyaNova.Models
|
||||
public class Tag
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required, MaxLength(255)]
|
||||
public string Name { get; set; }//max 255 characters
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace AyaNova.Models
|
||||
public class Translation
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
|
||||
[Required]
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class TranslationItem
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Key { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class Unit
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class UnitModel
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace AyaNova.Models
|
||||
Tags = new List<string>();
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public bool Active { get; set; }
|
||||
[Required, MaxLength(255)]
|
||||
public string Name { get; set; }
|
||||
@@ -32,7 +32,7 @@ namespace AyaNova.Models
|
||||
public class User
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public bool Active { get; set; }
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace AyaNova.Models
|
||||
public class UserOptions
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public long TranslationId { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class Vendor
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class Widget
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace AyaNova.Models
|
||||
}
|
||||
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public uint Serial { get; set; }
|
||||
@@ -38,7 +38,7 @@ namespace AyaNova.Models
|
||||
}
|
||||
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public uint Serial { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
Tags = new List<string>();
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string Wiki { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
@@ -40,7 +40,7 @@ namespace AyaNova.Models
|
||||
Units = new List<WorkOrderItemUnit>();
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string Wiki { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.Models
|
||||
Tags = new List<string>();
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.Models
|
||||
Tags = new List<string>();
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.Models
|
||||
Tags = new List<string>();
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.Models
|
||||
Tags = new List<string>();
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.Models
|
||||
Tags = new List<string>();
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.Models
|
||||
Tags = new List<string>();
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.Models
|
||||
Tags = new List<string>();
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.Models
|
||||
Tags = new List<string>();
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.Models
|
||||
Tags = new List<string>();
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class WorkOrderTemplate
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Models
|
||||
public class WorkOrderTemplateItem
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace AyaNova.Models
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string NewText { get; set; }
|
||||
public uint ConcurrencyToken { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user