Associations

This commit is contained in:
Andy Howard
2024-12-04 15:30:59 +00:00
parent c8b5df5909
commit 30d0352f48
140 changed files with 5109 additions and 2879 deletions
+16 -13
View File
@@ -1421,17 +1421,20 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
/// </summary>
public enum AffiliateType
{
/// <summary>
/// Organisation or Individual.</summary>
AnyContact = -3,
/// <summary>Any type of Organisation.</summary>
AnyOrganisation = -2,
Any = -1,
Unknown = 0,
Any = 0,
Unknown = Any,
// NB Do not change the positive values, as tied to the database.
Individual = 1, // 'IND'
Commercial = 2, // 'COM'
Society = 3, // 'SOC'
Academic = 4, // 'ACA'
PublicSector = 5, // 'PUB'
Charity = 6, // 'CHA'
Individual = 1, // 'IND'
Commercial = 2, // 'COM'
Society = 3, // 'SOC'
Academic = 4, // 'ACA'
PublicSector = 5, // 'PUB'
Charity = 6, // 'CHA'
ContactGroup = 10, // 'GRP'
}
@@ -1440,11 +1443,11 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
{
Any = 0,
// NB Do not change the positive values, as tied to the database.
Office = 1, // 'OFF'
Registered = 2, // 'REG'
Home = 3, // 'HOM'
Delivery = 4, // 'DEL'
Billing = 5, // 'BIL'
Office = 1, // 'OFF'
Registered = 2, // 'REG'
Home = 3, // 'HOM'
Delivery = 4, // 'DEL'
Billing = 5, // 'BIL'
}
//-------------------------------------------------------------------
@@ -52,7 +52,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
public abstract ISacsDatabase GetControlDatabase();
public abstract ISacsDatabase GetTemplateDatabase();
// Business Mgr Database.
public abstract HashSet<string> GetDbIdentifiers(SbmSessionContext sessionContext);
public abstract HashSet<string> GetRepositoryContexts(SbmSessionContext sessionContext);
public abstract ISacsDatabase GetBusMgrDatabase(SbmSessionContext sessionContext);
public IDatabaseInfo CreateBusMgrDbInfo(SbmSessionContext sessionContext)
{
+9 -1
View File
@@ -6,7 +6,7 @@ using System.Collections.Generic;
using System.Linq;
//---------------------------------------------------------------------------
// Code generated by Sarand Database Utilities Thu 6-Jun-2024 17:06:27
// Code generated by Sarand Database Utilities Wed 4-Dec-2024 12:38:21
//---------------------------------------------------------------------------
namespace Sarand.BusinessMgr.Net.Standard.Base.App
{
@@ -1155,6 +1155,14 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
{
return tableCount;
}
public static String GetSchemaName (TableIdx table, bool delimitReservedWords = true)
{
int tableIdx = (int)table - 1;
if (tableIdx < 0 || tableIdx >= tableCount) return String.Empty;
String schemaName = tables[(int)tableIdx].Schema;
if (delimitReservedWords) { schemaName = DelimitReservedWord(schemaName); }
return schemaName;
}
public static String GetTableName (TableIdx table, bool delimitReservedWords = true)
{
int tableIdx = (int)table - 1;
@@ -6,7 +6,7 @@ using System.Collections.Generic;
using System.Linq;
//---------------------------------------------------------------------------
// Code generated by Sarand Database Utilities Mon 21-Oct-2024 18:34:08
// Code generated by Sarand Database Utilities Wed 4-Dec-2024 12:38:20
//---------------------------------------------------------------------------
namespace Sarand.BusinessMgr.Net.Standard.Base.App
{
@@ -114,6 +114,14 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
{
return tableCount;
}
public static String GetSchemaName (TableIdx table, bool delimitReservedWords = true)
{
int tableIdx = (int)table - 1;
if (tableIdx < 0 || tableIdx >= tableCount) return String.Empty;
String schemaName = tables[(int)tableIdx].Schema;
if (delimitReservedWords) { schemaName = DelimitReservedWord(schemaName); }
return schemaName;
}
public static String GetTableName (TableIdx table, bool delimitReservedWords = true)
{
int tableIdx = (int)table - 1;