├── LICENSE ├── README.md └── SugarRestSharpSolution ├── SugarCrm.PocoGen.Console ├── App.config ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── Settings.StyleCop ├── StyleCop.Cache ├── SugarCrm.PocoGen.Console.csproj └── packages.config ├── SugarCrm.PocoGen ├── DbServerProviderName.cs ├── DbServerType.cs ├── ModelTemplate.cs ├── Models │ ├── Column.cs │ ├── Key.cs │ ├── Table.cs │ ├── Tables.cs │ └── Utils.cs ├── Properties │ └── AssemblyInfo.cs ├── Readers │ ├── MySqlSugarSchemaReader.cs │ ├── SchemaReader.cs │ └── SchemaReaderProvider.cs ├── Settings.StyleCop ├── StyleCop.Cache ├── SugarCrm.PocoGen.csproj ├── Templates │ ├── ModelTemplate.cs │ └── ModelTemplate.tt ├── app.config └── packages.config ├── SugarRestSharp.IntegrationTests ├── AccountsModuleTests.cs ├── ContactsModuleTests.cs ├── CustomModels │ ├── CustomAcccount1.cs │ ├── CustomAcccount2.cs │ └── CustomAcccount3.cs ├── Helpers │ ├── AccountsModule.cs │ ├── ContactsModule.cs │ └── LinkedModules.cs ├── LinkedModulesTests.cs ├── Properties │ └── AssemblyInfo.cs ├── QueryTests.cs ├── SugarRestSharp.IntegrationTests.csproj ├── TestAccount.cs ├── WikiTester.cs └── packages.config ├── SugarRestSharp ├── ErrorCodes.cs ├── Options.cs ├── Properties │ └── AssemblyInfo.cs ├── QueryOperator.cs ├── QueryPredicate.cs ├── RequestType.cs ├── RestApiCalls │ ├── EntityBase.cs │ ├── Helpers │ │ ├── DeserializerExceptionsContractResolver.cs │ │ ├── JsonConverterHelper.cs │ │ ├── JsonExtensions.cs │ │ ├── ModelnfoExtensions.cs │ │ └── QueryBuilder.cs │ ├── MethodCalls │ │ ├── Authentication.cs │ │ ├── DeleteEntry.cs │ │ ├── GetEntry.cs │ │ ├── GetEntryList.cs │ │ ├── GetLinkedEntry.cs │ │ ├── GetLinkedEntryList.cs │ │ ├── GetPagedEntryList.cs │ │ ├── InsertEntries.cs │ │ ├── InsertEntry.cs │ │ ├── UpdateEntries.cs │ │ ├── UpdateEntry.cs │ │ └── Util.cs │ ├── ModelInfo.cs │ ├── ModelProperty.cs │ ├── ModulePropertyAttribute.cs │ ├── Requests │ │ ├── JsonPredicate.cs │ │ └── LoginRequest.cs │ ├── Responses │ │ ├── BaseResponse.cs │ │ ├── DeleteEntryResponse.cs │ │ ├── EntryListArray.cs │ │ ├── ErrorResponse.cs │ │ ├── Extensions │ │ │ └── LinkedEntryListExtensions.cs │ │ ├── InsertEntriesResponse.cs │ │ ├── InsertEntryResponse.cs │ │ ├── LinkedListModule.cs │ │ ├── LinkedListModuleData.cs │ │ ├── LinkedModuleData.cs │ │ ├── LinkedRecordItem.cs │ │ ├── LoginResponse.cs │ │ ├── ReadEntryListResponse.cs │ │ ├── ReadEntryResponse.cs │ │ ├── ReadLinkedEntryListResponse.cs │ │ ├── ReadLinkedEntryResponse.cs │ │ ├── UpdateEntriesResponse.cs │ │ └── UpdateEntryResponse.cs │ ├── RestClientExtensions.cs │ └── SugarApiRestResponse.cs ├── StyleCop.Cache ├── SugarCrmModels │ ├── Account.cs │ ├── AccountsAudit.cs │ ├── AccountsBugs.cs │ ├── AccountsCases.cs │ ├── AccountsContacts.cs │ ├── AccountsOpportunities.cs │ ├── AclActions.cs │ ├── AclRoles.cs │ ├── AclRolesActions.cs │ ├── AclRolesUsers.cs │ ├── AddressBook.cs │ ├── Bug.cs │ ├── BugsAudit.cs │ ├── Call.cs │ ├── CallsContacts.cs │ ├── CallsLeads.cs │ ├── CallsUsers.cs │ ├── Campaign.cs │ ├── CampaignLog.cs │ ├── CampaignTrkrs.cs │ ├── CampaignsAudit.cs │ ├── Case.cs │ ├── CasesAudit.cs │ ├── CasesBugs.cs │ ├── Config.cs │ ├── Contact.cs │ ├── ContactsAudit.cs │ ├── ContactsBugs.cs │ ├── ContactsCases.cs │ ├── ContactsUsers.cs │ ├── CronRemoveDocuments.cs │ ├── Currency.cs │ ├── CustomFields.cs │ ├── Document.cs │ ├── DocumentRevisions.cs │ ├── DocumentsAccounts.cs │ ├── DocumentsBugs.cs │ ├── DocumentsCases.cs │ ├── DocumentsContacts.cs │ ├── DocumentsOpportunities.cs │ ├── Eapm.cs │ ├── Email.cs │ ├── EmailAddrBeanRel.cs │ ├── EmailAddresses.cs │ ├── EmailCache.cs │ ├── EmailMarketing.cs │ ├── EmailMarketingProspectLists.cs │ ├── EmailTemplates.cs │ ├── Emailman.cs │ ├── EmailsBeans.cs │ ├── EmailsEmailAddrRel.cs │ ├── EmailsText.cs │ ├── FieldsMetaData.cs │ ├── Folder.cs │ ├── FoldersRel.cs │ ├── FoldersSubscriptions.cs │ ├── ImportMaps.cs │ ├── InboundEmail.cs │ ├── InboundEmailAutoreply.cs │ ├── InboundEmailCacheTs.cs │ ├── JobQueue.cs │ ├── Lead.cs │ ├── LeadsAudit.cs │ ├── LinkedDocuments.cs │ ├── Meeting.cs │ ├── MeetingsContacts.cs │ ├── MeetingsLeads.cs │ ├── MeetingsUsers.cs │ ├── Note.cs │ ├── OauthConsumer.cs │ ├── OauthNonce.cs │ ├── OauthTokens.cs │ ├── OpportunitiesAudit.cs │ ├── OpportunitiesContacts.cs │ ├── Opportunity.cs │ ├── OutboundEmail.cs │ ├── Project.cs │ ├── ProjectTask.cs │ ├── ProjectTaskAudit.cs │ ├── ProjectsAccounts.cs │ ├── ProjectsBugs.cs │ ├── ProjectsCases.cs │ ├── ProjectsContacts.cs │ ├── ProjectsOpportunities.cs │ ├── ProjectsProducts.cs │ ├── Prospect.cs │ ├── ProspectListCampaigns.cs │ ├── ProspectLists.cs │ ├── ProspectListsProspects.cs │ ├── Relationship.cs │ ├── Release.cs │ ├── Role.cs │ ├── RolesModules.cs │ ├── RolesUsers.cs │ ├── SavedSearch.cs │ ├── Scheduler.cs │ ├── Sugarfeed.cs │ ├── Task.cs │ ├── Tracker.cs │ ├── UpgradeHistory.cs │ ├── User.cs │ ├── UserPreferences.cs │ ├── UsersFeeds.cs │ ├── UsersLastImport.cs │ ├── UsersPasswordLink.cs │ ├── UsersSignatures.cs │ ├── Vcal.cs │ └── Version.cs ├── SugarRestClient.cs ├── SugarRestClientExtensions.cs ├── SugarRestRequest.cs ├── SugarRestResponse.cs ├── SugarRestSharp.1.0.0.nupkg ├── SugarRestSharp.csproj ├── SugarRestSharp.nuspec └── packages.config └── SugarRestSharpSolution.sln /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen.Console/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen.Console/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | using System.Reflection; 8 | using System.Runtime.CompilerServices; 9 | using System.Runtime.InteropServices; 10 | 11 | // General Information about an assembly is controlled through the following 12 | // set of attributes. Change these attribute values to modify the information 13 | // associated with an assembly. 14 | [assembly: AssemblyTitle("SugarCrm.PocoGen.Console")] 15 | [assembly: AssemblyDescription("")] 16 | [assembly: AssemblyConfiguration("")] 17 | [assembly: AssemblyCompany("")] 18 | [assembly: AssemblyProduct("SugarCrm.PocoGen.Console")] 19 | [assembly: AssemblyCopyright("Copyright © 2016")] 20 | [assembly: AssemblyTrademark("")] 21 | [assembly: AssemblyCulture("")] 22 | 23 | // Setting ComVisible to false makes the types in this assembly not visible 24 | // to COM components. If you need to access a type in this assembly from 25 | // COM, set the ComVisible attribute to true on that type. 26 | [assembly: ComVisible(false)] 27 | 28 | // The following GUID is for the ID of the typelib if this project is exposed to COM 29 | [assembly: Guid("ec482444-e8d1-4cde-a940-0d0179e3c5c6")] 30 | 31 | // Version information for an assembly consists of the following four values: 32 | // 33 | // Major Version 34 | // Minor Version 35 | // Build Number 36 | // Revision 37 | // 38 | // You can specify all the values or you can default the Build and Revision Numbers 39 | // by using the '*' as shown below: 40 | // [assembly: AssemblyVersion("1.0.*")] 41 | [assembly: AssemblyVersion("1.0.0.0")] 42 | [assembly: AssemblyFileVersion("1.0.0.0")] 43 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen.Console/Settings.StyleCop: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | False 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen.Console/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen/DbServerProviderName.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) Lite Poco Generator. All rights reserved. 4 | // This is code is based on the T4 template from the PetaPoco project which in turn is based on the subsonic project. 5 | // This is adapted from OrmLite T4 and Dapper.SimpleCRUD Projects. 6 | // 7 | // ----------------------------------------------------------------------- 8 | 9 | namespace SugarCrm.PocoGen 10 | { 11 | /// 12 | /// This class represents DbServerProviderName class. 13 | /// 14 | public static class DbServerProviderName 15 | { 16 | /// 17 | /// MS SQL provider name 18 | /// 19 | public static string MsSql = "System.Data.SqlClient"; 20 | 21 | /// 22 | /// Sqlite provider name 23 | /// 24 | public static string Sqlite = "System.Data.SQLite"; 25 | 26 | /// 27 | /// MySql provider name 28 | /// 29 | public static string MySql = "MySql.Data.MySqlClient"; 30 | 31 | /// 32 | /// PostgreSQL provider name 33 | /// 34 | public static string Postgres = "Npgsql"; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen/DbServerType.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // This is code is based on the T4 template from the PetaPoco project which in turn is based on the subsonic project. 5 | // This is adapted from OrmLite T4 and Dapper.SimpleCRUD Projects. 6 | // 7 | // ----------------------------------------------------------------------- 8 | 9 | namespace SugarCrm.PocoGen 10 | { 11 | /// 12 | /// This enum class represents DbServerType class. 13 | /// 14 | public enum DbServerType 15 | { 16 | /// 17 | /// MS SQL database type 18 | /// 19 | MsSql, 20 | 21 | /// 22 | /// Sqlite database type 23 | /// 24 | Sqlite, 25 | 26 | /// 27 | /// MySql database type 28 | /// 29 | MySql, 30 | 31 | /// 32 | /// PostgreSQL database type 33 | /// 34 | Postgres 35 | } 36 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen/ModelTemplate.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) Lite Poco Generator. All rights reserved. 4 | // This is code is based on the T4 template from the PetaPoco project which in turn is based on the subsonic project. 5 | // This is adapted from OrmLite T4 and Dapper.SimpleCRUD Projects. 6 | // 7 | // ----------------------------------------------------------------------- 8 | 9 | // ReSharper disable CheckNamespace 10 | namespace SugarCrm.PocoGen.Templates 11 | // ReSharper restore CheckNamespace 12 | { 13 | using Models; 14 | 15 | /// 16 | /// This class represents ModelTemplate class. 17 | /// This a partial class of the template class generated from ModelTemplate.tt. 18 | /// Note that the namespace - PocoGen.Templates matches the template file namespace. 19 | /// 20 | public partial class ModelTemplate 21 | { 22 | /// 23 | /// Gets or sets namespace of model 24 | /// 25 | public string Namespace { get; set; } 26 | 27 | /// 28 | /// Gets or sets a value indicating whether to include relationship 29 | /// 30 | public bool IncludeRelationships { get; set; } 31 | 32 | /// 33 | /// Gets or sets the table object 34 | /// 35 | public Table Table { get; set; } 36 | 37 | /// 38 | /// Gets or sets list of table objects 39 | /// 40 | public Tables Tables { get; set; } 41 | } 42 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen/Models/Column.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // This is code is based on the T4 template from the PetaPoco project which in turn is based on the subsonic project. 5 | // This is adapted from OrmLite T4 and Dapper.SimpleCRUD Projects. 6 | // 7 | // ----------------------------------------------------------------------- 8 | 9 | namespace SugarCrm.PocoGen.Models 10 | { 11 | /// 12 | /// This class represents a table column. 13 | /// 14 | public class Column 15 | { 16 | /// 17 | /// Gets or sets name of the column name. 18 | /// 19 | public string Name { get; set; } 20 | 21 | /// 22 | /// Gets or sets name of the class property name. 23 | /// 24 | public string PropertyName { get; set; } 25 | 26 | /// 27 | /// Gets or sets name of the class property type. 28 | /// 29 | public string PropertyType { get; set; } 30 | 31 | /// 32 | /// Gets or sets a value indicating whether column is a primary key column. 33 | /// 34 | public bool IsPk { get; set; } 35 | 36 | /// 37 | /// Gets or sets a value indicating whether column is nullable. 38 | /// 39 | public bool IsNullable { get; set; } 40 | 41 | /// 42 | /// Gets or sets a value indicating whether column is an autocrement. 43 | /// 44 | public bool IsAutoIncrement { get; set; } 45 | 46 | /// 47 | /// Gets or sets a value indicating whether column should be ignored in mapping. 48 | /// 49 | public bool Ignore { get; set; } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen/Models/Key.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // This is code is based on the T4 template from the PetaPoco project which in turn is based on the subsonic project. 5 | // This is adapted from OrmLite T4 and Dapper.SimpleCRUD Projects. 6 | // 7 | // ----------------------------------------------------------------------- 8 | 9 | namespace SugarCrm.PocoGen.Models 10 | { 11 | /// 12 | /// This class represents a key of table column. 13 | /// 14 | public class Key 15 | { 16 | /// 17 | /// Gets or sets key name. For foreign key this is the constraint name. 18 | /// 19 | public string Name { get; set; } 20 | 21 | /// 22 | /// Gets or sets referenced table name. 23 | /// 24 | public string ReferencedTableName { get; set; } 25 | 26 | /// 27 | /// Gets or sets column name referenced in referenced table. 28 | /// 29 | public string ReferencedTableColumnName { get; set; } 30 | 31 | /// 32 | /// Gets or sets the refenrencing table name. This will be the table where key is defined. 33 | /// 34 | public string ReferencingTableName { get; set; } 35 | 36 | /// 37 | /// Gets or sets the refenrencing column name. This will be in the table where key is defined. 38 | /// 39 | public string ReferencingTableColumnName { get; set; } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen/Models/Tables.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // This is code is based on the T4 template from the PetaPoco project which in turn is based on the subsonic project. 5 | // This is adapted from OrmLite T4 and Dapper.SimpleCRUD Projects. 6 | // 7 | // ----------------------------------------------------------------------- 8 | 9 | namespace SugarCrm.PocoGen.Models 10 | { 11 | using System.Collections.Generic; 12 | using System.Linq; 13 | 14 | /// 15 | /// This class represents all tables in the database. 16 | /// 17 | public class Tables : List 18 | { 19 | /// 20 | /// Gets a table based on table name. 21 | /// 22 | /// Table name 23 | /// Table object 24 | public Table GetTable(string tableName) 25 | { 26 | return this.Single(x => string.Compare(x.Name, tableName, System.StringComparison.OrdinalIgnoreCase) == 0); 27 | } 28 | 29 | /// 30 | /// Gets a table based on table indexed name. 31 | /// 32 | /// Table name 33 | /// Table object 34 | public Table this[string tableName] 35 | { 36 | get 37 | { 38 | return this.GetTable(tableName); 39 | } 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // This is code is based on the T4 template from the PetaPoco project which in turn is based on the subsonic project. 5 | // This is adapted from OrmLite T4 and Dapper.SimpleCRUD Projects. 6 | // 7 | // ----------------------------------------------------------------------- 8 | 9 | using System.Reflection; 10 | using System.Runtime.CompilerServices; 11 | using System.Runtime.InteropServices; 12 | 13 | // General Information about an assembly is controlled through the following 14 | // set of attributes. Change these attribute values to modify the information 15 | // associated with an assembly. 16 | [assembly: AssemblyTitle("SugarCrm.PocoGen")] 17 | [assembly: AssemblyDescription("")] 18 | [assembly: AssemblyConfiguration("")] 19 | [assembly: AssemblyCompany("")] 20 | [assembly: AssemblyProduct("SugarCrm.PocoGen")] 21 | [assembly: AssemblyCopyright("Copyright © 2016")] 22 | [assembly: AssemblyTrademark("")] 23 | [assembly: AssemblyCulture("")] 24 | 25 | // Setting ComVisible to false makes the types in this assembly not visible 26 | // to COM components. If you need to access a type in this assembly from 27 | // COM, set the ComVisible attribute to true on that type. 28 | [assembly: ComVisible(false)] 29 | 30 | // The following GUID is for the ID of the typelib if this project is exposed to COM 31 | [assembly: Guid("8bca9878-7746-4906-868a-c22495227f45")] 32 | 33 | // Version information for an assembly consists of the following four values: 34 | // 35 | // Major Version 36 | // Minor Version 37 | // Build Number 38 | // Revision 39 | // 40 | // You can specify all the values or you can default the Build and Revision Numbers 41 | // by using the '*' as shown below: 42 | // [assembly: AssemblyVersion("1.0.*")] 43 | [assembly: AssemblyVersion("1.0.0.0")] 44 | [assembly: AssemblyFileVersion("1.0.0.0")] 45 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen/Readers/SchemaReader.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // This is code is based on the T4 template from the PetaPoco project which in turn is based on the subsonic project. 5 | // This is adapted from OrmLite T4 and Dapper.SimpleCRUD Projects. 6 | // 7 | // ----------------------------------------------------------------------- 8 | 9 | namespace SugarCrm.PocoGen.Readers 10 | { 11 | using System; 12 | using Models; 13 | 14 | /// 15 | /// This abstract class for schema reading. 16 | /// 17 | public abstract class SchemaReader : IDisposable 18 | { 19 | /// 20 | /// Reads the Schema returning all tables in the databse. 21 | /// 22 | /// Connection string 23 | /// List of table objects 24 | public abstract Tables ReadSchema(string connectionString); 25 | 26 | /// 27 | /// Disposes of objects 28 | /// 29 | public abstract void Dispose(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen/Readers/SchemaReaderProvider.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // This is code is based on the T4 template from the PetaPoco project which in turn is based on the subsonic project. 5 | // This is adapted from OrmLite T4 and Dapper.SimpleCRUD Projects. 6 | // 7 | // ----------------------------------------------------------------------- 8 | 9 | namespace SugarCrm.PocoGen.Readers 10 | { 11 | using System; 12 | 13 | /// 14 | /// This class represents a provier class to get right schema reader based on database type. 15 | /// 16 | public class SchemaReaderProvider 17 | { 18 | /// 19 | /// Get reader based on database type 20 | /// 21 | /// Database type [MsSql, Sqlite, MySql PostgreSQL] 22 | /// SchemaReader object 23 | public static SchemaReader GetReader(DbServerType dbserverType) 24 | { 25 | SchemaReader schemaReader = null; 26 | switch (dbserverType) 27 | { 28 | case DbServerType.MsSql: 29 | throw new NotImplementedException(); 30 | case DbServerType.Sqlite: 31 | throw new NotImplementedException(); 32 | case DbServerType.MySql: 33 | schemaReader = new MySqlSugarSchemaReader(); 34 | break; 35 | case DbServerType.Postgres: 36 | throw new NotImplementedException(); 37 | } 38 | 39 | return schemaReader; 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen/Settings.StyleCop: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | True 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | False 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | False 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | False 35 | 36 | 37 | 38 | 39 | False 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | False 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen/Templates/ModelTemplate.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" #> 2 | <#@ assembly name="System.Core" #> 3 | <#@ import namespace="System.Linq" #> 4 | <#@ import namespace="System.Text" #> 5 | <#@ import namespace="System.Collections.Generic" #> 6 | <#@ import namespace="SugarCrm.PocoGen.Models" #> 7 | <# 8 | /* 9 | The contents of this file are subject to the New BSD 10 | License (the "License"); you may not use this file 11 | except in compliance with the License. You may obtain a copy of 12 | the License at http://www.opensource.org/licenses/bsd-license.php 13 | 14 | Software distributed under the License is distributed on an 15 | "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 16 | implied. See the License for the specific language governing 17 | rights and limitations under the License. 18 | */ 19 | #> 20 | // 21 | // This file was generated by a T4 template. 22 | // Don't change it directly as your change would get overwritten. Instead, make changes 23 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 24 | 25 | // Make sure the compiler doesn't complain about missing Xml comments 26 | #pragma warning disable 1591 27 | 28 | namespace <#=Namespace #> 29 | { 30 | using System; 31 | using Newtonsoft.Json; 32 | using Sugar.PocoGen.Console; 33 | 34 | /// 35 | /// A class which represents the <#=Table.Name#> <#=(Table.IsView)?"view":"table"#>. 36 | /// 37 | [ModuleProperty(ModuleName = "<#=Utils.PascalCase(Table.Name) #>", TableName="<#=Table.Name#>")] 38 | public partial class <#=Table.ClassName#> : EntityBase 39 | { 40 | <#foreach(Column col in from c in Table.Columns where !c.Ignore select c) 41 | {#> 42 | <#='\t'#><#='\t'#>[JsonProperty(PropertyName = "<#=col.Name #>")] 43 | <#='\t'#><#='\t'#>public virtual <#=col.PropertyType #><#=Utils.CheckNullable(col)#> <#=Utils.PascalCase(col.PropertyName) #> { get; set; } 44 | 45 | <#}#> 46 | } 47 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarCrm.PocoGen/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp.IntegrationTests/CustomModels/CustomAcccount1.cs: -------------------------------------------------------------------------------- 1 | namespace SugarRestSharp.IntegrationTests.CustomModels 2 | { 3 | using Newtonsoft.Json; 4 | using SugarRestSharp.Models; 5 | using System.Collections.Generic; 6 | 7 | public class CustomAcccount1 : Account 8 | { 9 | [JsonProperty(PropertyName = "contacts")] 10 | public virtual List ContactLink { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp.IntegrationTests/CustomModels/CustomAcccount2.cs: -------------------------------------------------------------------------------- 1 | namespace SugarRestSharp.IntegrationTests.CustomModels 2 | { 3 | using Newtonsoft.Json; 4 | using SugarRestSharp.Models; 5 | using System.Collections.Generic; 6 | 7 | public class CustomAcccount2 : Account 8 | { 9 | [JsonProperty(PropertyName = "contacts")] 10 | public virtual List ContactLink { get; set; } 11 | 12 | [JsonProperty(PropertyName = "leads")] 13 | public virtual List LeadLink { get; set; } 14 | 15 | [JsonProperty(PropertyName = "cases")] 16 | public virtual List CaseLink { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp.IntegrationTests/CustomModels/CustomAcccount3.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace SugarRestSharp.IntegrationTests.CustomModels 8 | { 9 | using Newtonsoft.Json; 10 | using SugarRestSharp.Models; 11 | using System.Collections.Generic; 12 | 13 | public class CustomAcccount3 : Account 14 | { 15 | [JsonProperty(PropertyName = "Bugs")] 16 | public virtual List ContactLink { get; set; } 17 | 18 | [JsonProperty(PropertyName = "cases")] 19 | public virtual List CaseLink { get; set; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp.IntegrationTests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("SugarRestSharp.IntegrationTests")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("SugarRestSharp.IntegrationTests")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("b35ba57c-dc77-44ae-b145-f6dcb4b4ced1")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp.IntegrationTests/TestAccount.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.IntegrationTests 8 | { 9 | public static class TestAccount 10 | { 11 | public static string Url 12 | { 13 | get 14 | { 15 | return @"http://191.101.224.189/sugar/service/v4_1/rest.php"; 16 | } 17 | } 18 | 19 | public static string Username 20 | { 21 | get 22 | { 23 | return @"will"; 24 | } 25 | } 26 | 27 | public static string Password 28 | { 29 | get 30 | { 31 | return @"will"; 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp.IntegrationTests/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/ErrorCodes.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp 8 | { 9 | /// 10 | /// Represents ErrorCodes class 11 | /// 12 | internal class ErrorCodes 13 | { 14 | /// 15 | /// Invalid url error code 16 | /// 17 | public static string UrlInvalid = "Url is not valid or not provided."; 18 | 19 | /// 20 | /// Invalid username error code 21 | /// 22 | public static string UsernameInvalid = "Username is not valid or not provided."; 23 | 24 | /// 25 | /// Invalid password error code 26 | /// 27 | public static string PasswordInvalid = "Password is not valid or not provided."; 28 | 29 | /// 30 | /// Invalid entity type error code 31 | /// 32 | public static string ModulenameInvalid = "Generic type T provided is not a valid EntityBase Type. Must be valid SugarCrm model."; 33 | 34 | /// 35 | /// Invalid identifier error code 36 | /// 37 | public static string IdInvalid = "Identifier is not valid or not provided."; 38 | 39 | /// 40 | /// Invalid entity or entities data error code 41 | /// 42 | public static string DataInvalid = "Entity or entities data object provided is not valid."; 43 | 44 | /// 45 | /// Invalid linked field information missing. 46 | /// 47 | public static string LinkedFieldsInfoMissing = "Entity or entities data object provided is not valid."; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | using System.Reflection; 8 | using System.Runtime.CompilerServices; 9 | using System.Runtime.InteropServices; 10 | 11 | // General Information about an assembly is controlled through the following 12 | // set of attributes. Change these attribute values to modify the information 13 | // associated with an assembly. 14 | [assembly: AssemblyTitle("SugarRestSharp")] 15 | [assembly: AssemblyDescription("")] 16 | [assembly: AssemblyConfiguration("")] 17 | [assembly: AssemblyCompany("")] 18 | [assembly: AssemblyProduct("SugarRestSharp")] 19 | [assembly: AssemblyCopyright("Copyright © 2016")] 20 | [assembly: AssemblyTrademark("")] 21 | [assembly: AssemblyCulture("")] 22 | 23 | // Setting ComVisible to false makes the types in this assembly not visible 24 | // to COM components. If you need to access a type in this assembly from 25 | // COM, set the ComVisible attribute to true on that type. 26 | [assembly: ComVisible(false)] 27 | 28 | // The following GUID is for the ID of the typelib if this project is exposed to COM 29 | [assembly: Guid("f0f513b8-998d-435e-92f0-42ca484d98ad")] 30 | 31 | // Version information for an assembly consists of the following four values: 32 | // 33 | // Major Version 34 | // Minor Version 35 | // Build Number 36 | // Revision 37 | // 38 | // You can specify all the values or you can default the Build and Revision Numbers 39 | // by using the '*' as shown below: 40 | // [assembly: AssemblyVersion("1.0.*")] 41 | [assembly: AssemblyVersion("1.0.0.0")] 42 | [assembly: AssemblyFileVersion("1.0.0.0")] 43 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/QueryOperator.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp 8 | { 9 | /// 10 | /// Represents the QueryOperator enum class. 11 | /// 12 | public enum QueryOperator 13 | { 14 | /// 15 | /// The "equal" operator. 16 | /// 17 | Equal, 18 | 19 | /// 20 | /// The "greater than" operator. 21 | /// 22 | GreaterThan, 23 | 24 | /// 25 | /// The "greater than or equal to" operator. 26 | /// 27 | GreaterThanOrEqualTo, 28 | 29 | /// 30 | /// The "less than" operator. 31 | /// 32 | LessThan, 33 | 34 | /// 35 | /// The "less than or equal to" operator. 36 | /// 37 | LessThanOrEqualTo, 38 | 39 | /// 40 | /// The "contains" operator. 41 | /// 42 | Contains, 43 | 44 | /// 45 | /// Gets the starts with operator. 46 | /// 47 | StartsWith, 48 | 49 | /// 50 | /// The "ends with" operator. 51 | /// 52 | EndsWith, 53 | 54 | /// 55 | /// The "between" operator. 56 | /// 57 | Between, 58 | 59 | /// 60 | /// The "where in" operator. 61 | /// 62 | WhereIn 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/QueryPredicate.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp 8 | { 9 | /// 10 | /// Represents QueryPredicate class. 11 | /// 12 | public class QueryPredicate 13 | { 14 | /// 15 | /// Initializes a new instance of the QueryPredicate class. 16 | /// 17 | /// The property name. This can be a C# model property name or json property name. 18 | /// The query operator. 19 | /// The predicate value. 20 | /// The predicate from value. 21 | /// The predicate to value. 22 | public QueryPredicate(string propertyName, QueryOperator queryOperator, object value, object fromValue = null, object toValue = null) 23 | { 24 | this.PropertyName = propertyName; 25 | this.Operator = queryOperator; 26 | this.Value = value; 27 | this.FromValue = fromValue; 28 | this.ToValue = toValue; 29 | } 30 | 31 | /// 32 | /// Gets or sets the property name. 33 | /// 34 | public string PropertyName { get; set; } 35 | 36 | /// 37 | /// Gets or sets the operator. 38 | /// 39 | public QueryOperator Operator { get; set; } 40 | 41 | /// 42 | /// Gets or sets the value. 43 | /// 44 | public object Value { get; set; } 45 | 46 | /// 47 | /// Gets or sets the from value. 48 | /// 49 | public object FromValue { get; set; } 50 | 51 | /// 52 | /// Gets or sets the to value. 53 | /// 54 | public object ToValue { get; set; } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RequestType.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp 8 | { 9 | /// 10 | /// Represents RequestType enum class 11 | /// 12 | public enum RequestType 13 | { 14 | /// 15 | /// SugarCrm get by id method call 16 | /// 17 | ReadById, 18 | 19 | /// 20 | /// SugarCrm get all method call. 21 | /// 22 | BulkRead, 23 | 24 | /// 25 | /// SugarCrm get paged method call. 26 | /// 27 | PagedRead, 28 | 29 | /// 30 | /// SugarCrm create method call. 31 | /// 32 | Create, 33 | 34 | /// 35 | /// SugarCrm bulk create method call. 36 | /// 37 | BulkCreate, 38 | 39 | /// 40 | /// SugarCrm update method call. 41 | /// 42 | Update, 43 | 44 | /// 45 | /// SugarCrm bulk update method call. 46 | /// 47 | BulkUpdate, 48 | 49 | /// 50 | /// SugarCrm delete method call. 51 | /// 52 | Delete, 53 | 54 | /// 55 | /// SugarCrm get by id method call - this gets associated linked objects serialized into a known custom type. 56 | /// 57 | LinkedReadById, 58 | 59 | /// 60 | /// SugarCrm get all method call - this gets associated linked objects serialized into a known custom type. 61 | /// 62 | LinkedBulkRead 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/EntityBase.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp 8 | { 9 | /// 10 | /// Base class for all SugarCrm models 11 | /// 12 | public class EntityBase 13 | { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Helpers/JsonExtensions.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.Helpers 8 | { 9 | using System; 10 | using System.Collections; 11 | using System.Collections.Generic; 12 | using Newtonsoft.Json.Linq; 13 | 14 | /// 15 | /// This class represents JsonExtensions class. 16 | /// 17 | internal static class JsonExtensions 18 | { 19 | /// 20 | /// Converts json string to dynamic object collections datatable. 21 | /// 22 | /// Json string to extend. 23 | /// The type. 24 | /// DataTable object 25 | public static IList ToObjects(this string json, Type type) 26 | { 27 | IList data = (IList)Activator.CreateInstance(typeof(List<>).MakeGenericType(type)); 28 | JArray jarr = JArray.Parse(json); 29 | foreach (JObject jobject in jarr.Children()) 30 | { 31 | object tempObject = JsonConverterHelper.Deserialize(jobject.ToString(), type); 32 | data.Add(tempObject); 33 | } 34 | 35 | return data; 36 | } 37 | 38 | /// 39 | /// Converts json string to dynamic object datatable. 40 | /// 41 | /// Json string to extend. 42 | /// The type. 43 | /// DataTable object 44 | public static object ToObject(this string json, Type type) 45 | { 46 | JObject jobject = JObject.Parse(json); 47 | return JsonConverterHelper.Deserialize(jobject.ToString(), type); 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/MethodCalls/Util.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.MethodCalls 8 | { 9 | using System; 10 | using System.Security.Cryptography; 11 | using System.Text; 12 | 13 | /// 14 | /// Represents the Util class 15 | /// 16 | internal static class Util 17 | { 18 | /// 19 | /// Calculates and returns password hash as required by SugarCrm REST API calls 20 | /// 21 | /// The user supplied plain password 22 | /// Hased password 23 | public static string CalculateMd5Hash(string password) 24 | { 25 | MD5 md5 = MD5.Create(); 26 | byte[] inputBytes = Encoding.ASCII.GetBytes(password); 27 | byte[] hash = md5.ComputeHash(inputBytes); 28 | 29 | var stringBuilder = new StringBuilder(); 30 | for (int i = 0; i < hash.Length; i++) 31 | { 32 | stringBuilder.Append(hash[i].ToString("x2")); 33 | } 34 | 35 | return stringBuilder.ToString(); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/ModelProperty.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp 8 | { 9 | using System; 10 | 11 | /// 12 | /// This class represents ModelProperty class. 13 | /// 14 | internal class ModelProperty 15 | { 16 | /// 17 | /// Gets or sets the C# property name. 18 | /// 19 | public string Name { get; set; } 20 | 21 | /// 22 | /// Gets or sets the property name in json. 23 | /// 24 | public string JsonName { get; set; } 25 | 26 | /// 27 | /// Gets or sets property C# object type. 28 | /// 29 | public Type Type { get; set; } 30 | 31 | /// 32 | /// Gets or sets a value indicating whether value is numeric or not. 33 | /// 34 | public bool IsNumeric 35 | { 36 | get 37 | { 38 | if (Type == null) 39 | { 40 | return false; 41 | } 42 | 43 | string typeName = Type.Name.ToLower(); 44 | switch (typeName) 45 | { 46 | case "int32": 47 | case "sbyte": 48 | return true; 49 | case "string": 50 | case "datetime": 51 | return false; 52 | } 53 | 54 | return false; 55 | } 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/ModulePropertyAttribute.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp 8 | { 9 | using System; 10 | 11 | /// 12 | /// SugarCrm module attributes [ModuleName - name of module, Tablename - name of associated table] 13 | /// 14 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] 15 | internal class ModulePropertyAttribute : Attribute 16 | { 17 | /// 18 | /// Gets or sets module name 19 | /// 20 | public string ModuleName { get; set; } 21 | 22 | /// 23 | /// Gets or sets table name 24 | /// 25 | public string TableName { get; set; } 26 | } 27 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Requests/JsonPredicate.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.RestApiCalls.Requests 8 | { 9 | /// 10 | /// Represents JsonPredicate class. 11 | /// 12 | internal class JsonPredicate 13 | { 14 | /// 15 | /// Initializes a new instance of the JsonPredicate class. 16 | /// 17 | /// The property name. This can be a C# model property name or json property name. 18 | /// The query operator. 19 | /// The predicate value. 20 | /// The predicate from value. 21 | /// The predicate to value. 22 | public JsonPredicate(string propertyName, QueryOperator queryOperator, string value, string fromValue, string toValue) 23 | { 24 | this.PropertyName = propertyName; 25 | this.Operator = queryOperator; 26 | this.Value = value; 27 | this.FromValue = fromValue; 28 | this.ToValue = toValue; 29 | } 30 | 31 | /// 32 | /// Gets or sets the json property name. 33 | /// 34 | public string PropertyName { get; set; } 35 | 36 | /// 37 | /// Gets or sets the operator. 38 | /// 39 | public QueryOperator Operator { get; set; } 40 | 41 | /// 42 | /// Gets or sets the value. 43 | /// 44 | public string Value { get; set; } 45 | 46 | /// 47 | /// Gets or sets the from value. 48 | /// 49 | public string FromValue { get; set; } 50 | 51 | /// 52 | /// Gets or sets the to value. 53 | /// 54 | public string ToValue { get; set; } 55 | 56 | /// 57 | /// Gets or sets a value indicating whether value is numeric or not. 58 | /// 59 | public bool IsNumeric { get; set; } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Requests/LoginRequest.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.Requests 8 | { 9 | /// 10 | /// Represents the LoginRequest class 11 | /// 12 | internal class LoginRequest 13 | { 14 | /// 15 | /// Gets or sets REST API Url 16 | /// 17 | public string Url { get; set; } 18 | 19 | /// 20 | /// Gets or sets REST API SessionId 21 | /// 22 | public string SessionId { get; set; } 23 | 24 | /// 25 | /// Gets or sets REST API Username 26 | /// 27 | public string Username { get; set; } 28 | 29 | /// 30 | /// Gets or sets REST API Password 31 | /// 32 | public string Password { get; set; } 33 | } 34 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Responses/BaseResponse.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.Responses 8 | { 9 | using System; 10 | using System.Net; 11 | using Newtonsoft.Json; 12 | 13 | /// 14 | /// Base SugarCrm REST API response object 15 | /// 16 | internal class BaseResponse 17 | { 18 | /// 19 | /// Initializes a new instance of the BaseResponse class 20 | /// 21 | public BaseResponse() 22 | { 23 | this.Time = DateTime.UtcNow; 24 | this.Error = new ErrorResponse(); 25 | } 26 | 27 | /// 28 | /// Gets or sets the time the API call was made 29 | /// 30 | [JsonIgnore] 31 | public DateTime Time { get; set; } 32 | 33 | /// 34 | /// Gets or sets the raw json request sent by SugarCrm Rest API 35 | /// 36 | [JsonIgnore] 37 | public string JsonRawRequest { get; set; } 38 | 39 | /// 40 | /// Gets or sets the raw json response sent by SugarCrm Rest API 41 | /// 42 | [JsonIgnore] 43 | public string JsonRawResponse { get; set; } 44 | 45 | /// 46 | /// Gets or sets the error object 47 | /// 48 | [JsonIgnore] 49 | public ErrorResponse Error { get; set; } 50 | 51 | /// 52 | /// Gets or sets the http status code - either returned from the API call or assigned 53 | /// 54 | [JsonIgnore] 55 | public HttpStatusCode StatusCode { get; set; } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Responses/DeleteEntryResponse.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.Responses 8 | { 9 | using Newtonsoft.Json; 10 | 11 | /// 12 | /// Represents DeleteEntryResponse class 13 | /// 14 | internal class DeleteEntryResponse : BaseResponse 15 | { 16 | /// 17 | /// Gets or sets the entity identifier of deleted entity 18 | /// 19 | [JsonProperty(PropertyName = "id")] 20 | public string Id { get; set; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Responses/EntryListArray.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.Responses 8 | { 9 | using System.Collections.Generic; 10 | using System.Linq; 11 | using Newtonsoft.Json; 12 | using Newtonsoft.Json.Linq; 13 | 14 | /// 15 | /// Represents EntryListArray class 16 | /// 17 | internal class EntryListArray 18 | { 19 | /// 20 | /// Gets the entity object 21 | /// 22 | public JObject Entity 23 | { 24 | get 25 | { 26 | var entity = new JObject(); 27 | if (this.NameValueList == null) 28 | { 29 | return entity; 30 | } 31 | 32 | IList keys = this.NameValueList.Properties().Select(p => p.Name).ToList(); 33 | foreach (var key in keys) 34 | { 35 | var newKey = (string)this.NameValueList[key]["name"]; 36 | var newValue = (string)this.NameValueList[key]["value"]; 37 | entity.Add(new JProperty(newKey, newValue)); 38 | } 39 | 40 | return entity; 41 | } 42 | } 43 | 44 | /// 45 | /// Gets or sets the entity identifier 46 | /// 47 | [JsonProperty(PropertyName = "id")] 48 | public string Id { get; set; } 49 | 50 | /// 51 | /// Gets or sets the entity module name 52 | /// 53 | [JsonProperty(PropertyName = "module_name")] 54 | public string ModuleName { get; set; } 55 | 56 | /// 57 | /// Gets or sets the returned entity name value list 58 | /// 59 | [JsonProperty(PropertyName = "name_value_list")] 60 | public JObject NameValueList { get; set; } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Responses/Extensions/LinkedEntryListExtensions.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.RestApiCalls.Responses.Extensions 8 | { 9 | using Newtonsoft.Json.Linq; 10 | 11 | /// 12 | /// This class represents LinkedEntryListExtensions class. 13 | /// 14 | internal static class LinkedEntryListExtensions 15 | { 16 | public static void SetModuleLinkedList(this JObject module, LinkedListModule linkedListModule) 17 | { 18 | if (linkedListModule == null) 19 | { 20 | return; 21 | } 22 | 23 | if ((linkedListModule.ModuleDataList == null) || (linkedListModule.ModuleDataList.Count == 0)) 24 | { 25 | return; 26 | } 27 | 28 | foreach (var item in linkedListModule.ModuleDataList) 29 | { 30 | module[item.ModuleName] = JToken.FromObject(item.FormattedRecords); 31 | } 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Responses/InsertEntriesResponse.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.Responses 8 | { 9 | using System.Collections.Generic; 10 | using Newtonsoft.Json; 11 | 12 | /// 13 | /// Represents InsertEntriesResponse class 14 | /// 15 | internal class InsertEntriesResponse : BaseResponse 16 | { 17 | /// 18 | /// Gets or sets the entity identifier of inserted entity 19 | /// 20 | [JsonProperty(PropertyName = "ids")] 21 | public List Ids { get; set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Responses/InsertEntryResponse.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.Responses 8 | { 9 | using Newtonsoft.Json; 10 | 11 | /// 12 | /// Represents InsertEntryResponse class 13 | /// 14 | internal class InsertEntryResponse : BaseResponse 15 | { 16 | /// 17 | /// Gets or sets the entity identifier of inserted entity 18 | /// 19 | [JsonProperty(PropertyName = "id")] 20 | public string Id { get; set; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Responses/LinkedListModule.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.RestApiCalls.Responses 8 | { 9 | using System.Collections.Generic; 10 | using Newtonsoft.Json; 11 | using SugarRestSharp.Responses; 12 | 13 | /// 14 | /// Represents LinkedListModule class. 15 | /// 16 | internal class LinkedListModule 17 | { 18 | /// 19 | /// Gets or sets the linked module data list info. 20 | /// 21 | [JsonProperty(PropertyName = "link_list")] 22 | public List ModuleDataList { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Responses/LinkedListModuleData.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.Responses 8 | { 9 | using System.Collections.Generic; 10 | using Newtonsoft.Json; 11 | using Newtonsoft.Json.Linq; 12 | using RestApiCalls.Responses; 13 | 14 | /// 15 | /// Represents LinkedListModuleData class 16 | /// 17 | internal class LinkedListModuleData 18 | { 19 | /// 20 | /// Gets or sets the linked module name. 21 | /// 22 | [JsonProperty(PropertyName = "name")] 23 | public string ModuleName { get; set; } 24 | 25 | /// 26 | /// Gets or sets the linked module data. 27 | /// 28 | [JsonProperty(PropertyName = "records")] 29 | public List Records { get; set; } 30 | 31 | /// 32 | /// Gets the formatted record in json. 33 | /// 34 | public List FormattedRecords 35 | { 36 | get 37 | { 38 | var entities = new List(); 39 | if (this.Records == null) 40 | { 41 | return new List(); 42 | } 43 | 44 | foreach (LinkedRecordItem item in this.Records) 45 | { 46 | entities.Add(item.FormattedValue); 47 | } 48 | 49 | return entities; 50 | } 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Responses/LinkedModuleData.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.Responses 8 | { 9 | using System.Collections.Generic; 10 | using System.Linq; 11 | using Newtonsoft.Json; 12 | using Newtonsoft.Json.Linq; 13 | 14 | /// 15 | /// Represents LinkedModuleData class 16 | /// 17 | internal class LinkedModuleData 18 | { 19 | /// 20 | /// Gets or sets the linked module name. 21 | /// 22 | [JsonProperty(PropertyName = "name")] 23 | public string ModuleName { get; set; } 24 | 25 | /// 26 | /// Gets or sets the linked module data. 27 | /// 28 | [JsonProperty(PropertyName = "records")] 29 | public List Records { get; set; } 30 | 31 | public List FormattedRecords 32 | { 33 | get 34 | { 35 | var entities = new List(); 36 | if (this.Records == null) 37 | { 38 | return new List(); 39 | } 40 | 41 | foreach (JObject item in this.Records) 42 | { 43 | JObject jentity = new JObject(); 44 | IList keys = item.Properties().Select(p => p.Name).ToList(); 45 | foreach (var key in keys) 46 | { 47 | var newKey = (string)item[key]["name"]; 48 | var newValue = (string)item[key]["value"]; 49 | jentity.Add(new JProperty(newKey, newValue)); 50 | } 51 | 52 | entities.Add(jentity); 53 | } 54 | 55 | return entities; 56 | } 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Responses/LinkedRecordItem.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.RestApiCalls.Responses 8 | { 9 | using System.Collections.Generic; 10 | using System.Linq; 11 | using Newtonsoft.Json; 12 | using Newtonsoft.Json.Linq; 13 | 14 | /// 15 | /// Represents LinkedRecordItem class. 16 | /// 17 | internal class LinkedRecordItem 18 | { 19 | /// 20 | /// Gets or sets the json link value. 21 | /// 22 | [JsonProperty(PropertyName = "link_value")] 23 | public JObject Value { get; set; } 24 | 25 | /// 26 | /// Gets the json formatted link value. 27 | /// 28 | public JObject FormattedValue 29 | { 30 | get 31 | { 32 | if (this.Value == null) 33 | { 34 | return null; 35 | } 36 | 37 | JObject jentity = new JObject(); 38 | IList keys = this.Value.Properties().Select(p => p.Name).ToList(); 39 | foreach (var key in keys) 40 | { 41 | var newKey = (string)this.Value[key]["name"]; 42 | var newValue = (string)this.Value[key]["value"]; 43 | jentity.Add(new JProperty(newKey, newValue)); 44 | } 45 | 46 | return jentity; 47 | } 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Responses/LoginResponse.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.Responses 8 | { 9 | /// 10 | /// Represents the LoginResponse class 11 | /// 12 | internal class LoginResponse : BaseResponse 13 | { 14 | /// 15 | /// Gets or sets the session identifier 16 | /// 17 | public string SessionId { get; set; } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Responses/ReadEntryResponse.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.Responses 8 | { 9 | using System.Collections.Generic; 10 | using System.Linq; 11 | using Newtonsoft.Json; 12 | using Newtonsoft.Json.Linq; 13 | 14 | /// 15 | /// Represents ReadEntryResponse class 16 | /// 17 | internal class ReadEntryResponse : BaseResponse 18 | { 19 | /// 20 | /// Gets the entity returned from SugarCrm to json array object 21 | /// 22 | [JsonIgnore] 23 | public JObject Entity 24 | { 25 | get 26 | { 27 | if (this.EntryListArray == null) 28 | { 29 | return null; 30 | } 31 | 32 | var entityList = this.EntryListArray.Select(item => item.Entity).ToList(); 33 | 34 | if (entityList.Count > 0) 35 | { 36 | return entityList[0]; 37 | } 38 | 39 | return new JObject(); 40 | } 41 | } 42 | 43 | /// 44 | /// Gets or sets the entry list in json 45 | /// 46 | [JsonProperty(PropertyName = "entry_list")] 47 | public List EntryListArray { get; set; } 48 | 49 | /// 50 | /// Gets or sets the relationship link entry list in json 51 | /// 52 | [JsonProperty(PropertyName = "relationship_list")] 53 | public List RelationshipList { get; set; } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Responses/UpdateEntriesResponse.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.Responses 8 | { 9 | using System.Collections.Generic; 10 | using Newtonsoft.Json; 11 | 12 | /// 13 | /// Represents UpdateEntriesResponse class 14 | /// 15 | internal class UpdateEntriesResponse : BaseResponse 16 | { 17 | /// 18 | /// Gets or sets the entity identifier of updated entity 19 | /// 20 | [JsonProperty(PropertyName = "ids")] 21 | public List Ids { get; set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/Responses/UpdateEntryResponse.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp.Responses 8 | { 9 | using Newtonsoft.Json; 10 | 11 | /// 12 | /// Represents UpdateEntryResponse class 13 | /// 14 | internal class UpdateEntryResponse : BaseResponse 15 | { 16 | /// 17 | /// Gets or sets the entity identifier of updated entity 18 | /// 19 | [JsonProperty(PropertyName = "id")] 20 | public string Id { get; set; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/RestApiCalls/SugarApiRestResponse.cs: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) SugarCrm + PocoGen + REST. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | namespace SugarRestSharp 8 | { 9 | using RestSharp; 10 | 11 | /// 12 | /// Represents SugarApiRestResponse class. 13 | /// 14 | internal class SugarApiRestResponse 15 | { 16 | /// 17 | /// Gets or sets the RestSharp response object. 18 | /// 19 | public IRestResponse RestResponse { get; set; } 20 | 21 | /// 22 | /// Gets or sets the RestSharp raw json request. 23 | /// 24 | public string JsonRawRequest { get; set; } 25 | 26 | /// 27 | /// Gets or sets the RestSharp raw json response content. 28 | /// 29 | public string JsonRawResponse { get; set; } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/AccountsAudit.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the accounts_audit table. 17 | /// 18 | [ModuleProperty(ModuleName = "AccountsAudit", TableName="accounts_audit")] 19 | public partial class AccountsAudit : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "parent_id")] 25 | public virtual string ParentId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_created")] 28 | public virtual DateTime? DateCreated { get; set; } 29 | 30 | [JsonProperty(PropertyName = "created_by")] 31 | public virtual string CreatedBy { get; set; } 32 | 33 | [JsonProperty(PropertyName = "field_name")] 34 | public virtual string FieldName { get; set; } 35 | 36 | [JsonProperty(PropertyName = "data_type")] 37 | public virtual string DataType { get; set; } 38 | 39 | [JsonProperty(PropertyName = "before_value_string")] 40 | public virtual string BeforeValueString { get; set; } 41 | 42 | [JsonProperty(PropertyName = "after_value_string")] 43 | public virtual string AfterValueString { get; set; } 44 | 45 | [JsonProperty(PropertyName = "before_value_text")] 46 | public virtual string BeforeValueText { get; set; } 47 | 48 | [JsonProperty(PropertyName = "after_value_text")] 49 | public virtual string AfterValueText { get; set; } 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/AccountsBugs.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the accounts_bugs table. 17 | /// 18 | [ModuleProperty(ModuleName = "AccountsBugs", TableName="accounts_bugs")] 19 | public partial class AccountsBugs : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "account_id")] 25 | public virtual string AccountId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "bug_id")] 28 | public virtual string BugId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/AccountsCases.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the accounts_cases table. 17 | /// 18 | [ModuleProperty(ModuleName = "AccountsCases", TableName="accounts_cases")] 19 | public partial class AccountsCases : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "account_id")] 25 | public virtual string AccountId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "case_id")] 28 | public virtual string CaseId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/AccountsContacts.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the accounts_contacts table. 17 | /// 18 | [ModuleProperty(ModuleName = "AccountsContacts", TableName="accounts_contacts")] 19 | public partial class AccountsContacts : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "contact_id")] 25 | public virtual string ContactId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "account_id")] 28 | public virtual string AccountId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/AccountsOpportunities.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the accounts_opportunities table. 17 | /// 18 | [ModuleProperty(ModuleName = "AccountsOpportunities", TableName="accounts_opportunities")] 19 | public partial class AccountsOpportunities : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "opportunity_id")] 25 | public virtual string OpportunityId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "account_id")] 28 | public virtual string AccountId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/AclActions.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the acl_actions table. 17 | /// 18 | [ModuleProperty(ModuleName = "AclActions", TableName="acl_actions")] 19 | public partial class AclActions : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "date_entered")] 25 | public virtual DateTime? DateEntered { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_modified")] 28 | public virtual DateTime? DateModified { get; set; } 29 | 30 | [JsonProperty(PropertyName = "modified_user_id")] 31 | public virtual string ModifiedUserId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "created_by")] 34 | public virtual string CreatedBy { get; set; } 35 | 36 | [JsonProperty(PropertyName = "name")] 37 | public virtual string Name { get; set; } 38 | 39 | [JsonProperty(PropertyName = "category")] 40 | public virtual string Category { get; set; } 41 | 42 | [JsonProperty(PropertyName = "acltype")] 43 | public virtual string Acltype { get; set; } 44 | 45 | [JsonProperty(PropertyName = "aclaccess")] 46 | public virtual int? Aclaccess { get; set; } 47 | 48 | [JsonProperty(PropertyName = "deleted")] 49 | public virtual sbyte? Deleted { get; set; } 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/AclRoles.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the acl_roles table. 17 | /// 18 | [ModuleProperty(ModuleName = "AclRoles", TableName="acl_roles")] 19 | public partial class AclRoles : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "date_entered")] 25 | public virtual DateTime? DateEntered { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_modified")] 28 | public virtual DateTime? DateModified { get; set; } 29 | 30 | [JsonProperty(PropertyName = "modified_user_id")] 31 | public virtual string ModifiedUserId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "created_by")] 34 | public virtual string CreatedBy { get; set; } 35 | 36 | [JsonProperty(PropertyName = "name")] 37 | public virtual string Name { get; set; } 38 | 39 | [JsonProperty(PropertyName = "description")] 40 | public virtual string Description { get; set; } 41 | 42 | [JsonProperty(PropertyName = "deleted")] 43 | public virtual sbyte? Deleted { get; set; } 44 | 45 | } 46 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/AclRolesActions.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the acl_roles_actions table. 17 | /// 18 | [ModuleProperty(ModuleName = "AclRolesActions", TableName="acl_roles_actions")] 19 | public partial class AclRolesActions : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "role_id")] 25 | public virtual string RoleId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "action_id")] 28 | public virtual string ActionId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "access_override")] 31 | public virtual int? AccessOverride { get; set; } 32 | 33 | [JsonProperty(PropertyName = "date_modified")] 34 | public virtual DateTime? DateModified { get; set; } 35 | 36 | [JsonProperty(PropertyName = "deleted")] 37 | public virtual sbyte? Deleted { get; set; } 38 | 39 | } 40 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/AclRolesUsers.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the acl_roles_users table. 17 | /// 18 | [ModuleProperty(ModuleName = "AclRolesUsers", TableName="acl_roles_users")] 19 | public partial class AclRolesUsers : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "role_id")] 25 | public virtual string RoleId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "user_id")] 28 | public virtual string UserId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/AddressBook.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the address_book table. 17 | /// 18 | [ModuleProperty(ModuleName = "AddressBook", TableName="address_book")] 19 | public partial class AddressBook : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "assigned_user_id")] 22 | public virtual string AssignedUserId { get; set; } 23 | 24 | [JsonProperty(PropertyName = "bean")] 25 | public virtual string Bean { get; set; } 26 | 27 | [JsonProperty(PropertyName = "bean_id")] 28 | public virtual string BeanId { get; set; } 29 | 30 | } 31 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/BugsAudit.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the bugs_audit table. 17 | /// 18 | [ModuleProperty(ModuleName = "BugsAudit", TableName="bugs_audit")] 19 | public partial class BugsAudit : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "parent_id")] 25 | public virtual string ParentId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_created")] 28 | public virtual DateTime? DateCreated { get; set; } 29 | 30 | [JsonProperty(PropertyName = "created_by")] 31 | public virtual string CreatedBy { get; set; } 32 | 33 | [JsonProperty(PropertyName = "field_name")] 34 | public virtual string FieldName { get; set; } 35 | 36 | [JsonProperty(PropertyName = "data_type")] 37 | public virtual string DataType { get; set; } 38 | 39 | [JsonProperty(PropertyName = "before_value_string")] 40 | public virtual string BeforeValueString { get; set; } 41 | 42 | [JsonProperty(PropertyName = "after_value_string")] 43 | public virtual string AfterValueString { get; set; } 44 | 45 | [JsonProperty(PropertyName = "before_value_text")] 46 | public virtual string BeforeValueText { get; set; } 47 | 48 | [JsonProperty(PropertyName = "after_value_text")] 49 | public virtual string AfterValueText { get; set; } 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/CallsContacts.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the calls_contacts table. 17 | /// 18 | [ModuleProperty(ModuleName = "CallsContacts", TableName="calls_contacts")] 19 | public partial class CallsContacts : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "call_id")] 25 | public virtual string CallId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "contact_id")] 28 | public virtual string ContactId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "required")] 31 | public virtual string Required { get; set; } 32 | 33 | [JsonProperty(PropertyName = "accept_status")] 34 | public virtual string AcceptStatus { get; set; } 35 | 36 | [JsonProperty(PropertyName = "date_modified")] 37 | public virtual DateTime? DateModified { get; set; } 38 | 39 | [JsonProperty(PropertyName = "deleted")] 40 | public virtual sbyte? Deleted { get; set; } 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/CallsLeads.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the calls_leads table. 17 | /// 18 | [ModuleProperty(ModuleName = "CallsLeads", TableName="calls_leads")] 19 | public partial class CallsLeads : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "call_id")] 25 | public virtual string CallId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "lead_id")] 28 | public virtual string LeadId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "required")] 31 | public virtual string Required { get; set; } 32 | 33 | [JsonProperty(PropertyName = "accept_status")] 34 | public virtual string AcceptStatus { get; set; } 35 | 36 | [JsonProperty(PropertyName = "date_modified")] 37 | public virtual DateTime? DateModified { get; set; } 38 | 39 | [JsonProperty(PropertyName = "deleted")] 40 | public virtual sbyte? Deleted { get; set; } 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/CallsUsers.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the calls_users table. 17 | /// 18 | [ModuleProperty(ModuleName = "CallsUsers", TableName="calls_users")] 19 | public partial class CallsUsers : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "call_id")] 25 | public virtual string CallId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "user_id")] 28 | public virtual string UserId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "required")] 31 | public virtual string Required { get; set; } 32 | 33 | [JsonProperty(PropertyName = "accept_status")] 34 | public virtual string AcceptStatus { get; set; } 35 | 36 | [JsonProperty(PropertyName = "date_modified")] 37 | public virtual DateTime? DateModified { get; set; } 38 | 39 | [JsonProperty(PropertyName = "deleted")] 40 | public virtual sbyte? Deleted { get; set; } 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/CampaignLog.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the campaign_log table. 17 | /// 18 | [ModuleProperty(ModuleName = "CampaignLog", TableName="campaign_log")] 19 | public partial class CampaignLog : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "campaign_id")] 25 | public virtual string CampaignId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "target_tracker_key")] 28 | public virtual string TargetTrackerKey { get; set; } 29 | 30 | [JsonProperty(PropertyName = "target_id")] 31 | public virtual string TargetId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "target_type")] 34 | public virtual string TargetType { get; set; } 35 | 36 | [JsonProperty(PropertyName = "activity_type")] 37 | public virtual string ActivityType { get; set; } 38 | 39 | [JsonProperty(PropertyName = "activity_date")] 40 | public virtual DateTime? ActivityDate { get; set; } 41 | 42 | [JsonProperty(PropertyName = "related_id")] 43 | public virtual string RelatedId { get; set; } 44 | 45 | [JsonProperty(PropertyName = "related_type")] 46 | public virtual string RelatedType { get; set; } 47 | 48 | [JsonProperty(PropertyName = "archived")] 49 | public virtual sbyte? Archived { get; set; } 50 | 51 | [JsonProperty(PropertyName = "hits")] 52 | public virtual int? Hits { get; set; } 53 | 54 | [JsonProperty(PropertyName = "list_id")] 55 | public virtual string ListId { get; set; } 56 | 57 | [JsonProperty(PropertyName = "deleted")] 58 | public virtual sbyte? Deleted { get; set; } 59 | 60 | [JsonProperty(PropertyName = "date_modified")] 61 | public virtual DateTime? DateModified { get; set; } 62 | 63 | [JsonProperty(PropertyName = "more_information")] 64 | public virtual string MoreInformation { get; set; } 65 | 66 | [JsonProperty(PropertyName = "marketing_id")] 67 | public virtual string MarketingId { get; set; } 68 | 69 | } 70 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/CampaignTrkrs.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the campaign_trkrs table. 17 | /// 18 | [ModuleProperty(ModuleName = "CampaignTrkrs", TableName="campaign_trkrs")] 19 | public partial class CampaignTrkrs : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "tracker_name")] 25 | public virtual string TrackerName { get; set; } 26 | 27 | [JsonProperty(PropertyName = "tracker_url")] 28 | public virtual string TrackerUrl { get; set; } 29 | 30 | [JsonProperty(PropertyName = "tracker_key")] 31 | public virtual int TrackerKey { get; set; } 32 | 33 | [JsonProperty(PropertyName = "campaign_id")] 34 | public virtual string CampaignId { get; set; } 35 | 36 | [JsonProperty(PropertyName = "date_entered")] 37 | public virtual DateTime? DateEntered { get; set; } 38 | 39 | [JsonProperty(PropertyName = "date_modified")] 40 | public virtual DateTime? DateModified { get; set; } 41 | 42 | [JsonProperty(PropertyName = "modified_user_id")] 43 | public virtual string ModifiedUserId { get; set; } 44 | 45 | [JsonProperty(PropertyName = "created_by")] 46 | public virtual string CreatedBy { get; set; } 47 | 48 | [JsonProperty(PropertyName = "is_optout")] 49 | public virtual sbyte? IsOptout { get; set; } 50 | 51 | [JsonProperty(PropertyName = "deleted")] 52 | public virtual sbyte? Deleted { get; set; } 53 | 54 | } 55 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/CampaignsAudit.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the campaigns_audit table. 17 | /// 18 | [ModuleProperty(ModuleName = "CampaignsAudit", TableName="campaigns_audit")] 19 | public partial class CampaignsAudit : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "parent_id")] 25 | public virtual string ParentId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_created")] 28 | public virtual DateTime? DateCreated { get; set; } 29 | 30 | [JsonProperty(PropertyName = "created_by")] 31 | public virtual string CreatedBy { get; set; } 32 | 33 | [JsonProperty(PropertyName = "field_name")] 34 | public virtual string FieldName { get; set; } 35 | 36 | [JsonProperty(PropertyName = "data_type")] 37 | public virtual string DataType { get; set; } 38 | 39 | [JsonProperty(PropertyName = "before_value_string")] 40 | public virtual string BeforeValueString { get; set; } 41 | 42 | [JsonProperty(PropertyName = "after_value_string")] 43 | public virtual string AfterValueString { get; set; } 44 | 45 | [JsonProperty(PropertyName = "before_value_text")] 46 | public virtual string BeforeValueText { get; set; } 47 | 48 | [JsonProperty(PropertyName = "after_value_text")] 49 | public virtual string AfterValueText { get; set; } 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Case.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the cases table. 17 | /// 18 | [ModuleProperty(ModuleName = "Cases", TableName="cases")] 19 | public partial class Case : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "name")] 25 | public virtual string Name { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_entered")] 28 | public virtual DateTime? DateEntered { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "modified_user_id")] 34 | public virtual string ModifiedUserId { get; set; } 35 | 36 | [JsonProperty(PropertyName = "created_by")] 37 | public virtual string CreatedBy { get; set; } 38 | 39 | [JsonProperty(PropertyName = "description")] 40 | public virtual string Description { get; set; } 41 | 42 | [JsonProperty(PropertyName = "deleted")] 43 | public virtual sbyte? Deleted { get; set; } 44 | 45 | [JsonProperty(PropertyName = "assigned_user_id")] 46 | public virtual string AssignedUserId { get; set; } 47 | 48 | [JsonProperty(PropertyName = "case_number")] 49 | public virtual int CaseNumber { get; set; } 50 | 51 | [JsonProperty(PropertyName = "type")] 52 | public virtual string Type { get; set; } 53 | 54 | [JsonProperty(PropertyName = "status")] 55 | public virtual string Status { get; set; } 56 | 57 | [JsonProperty(PropertyName = "priority")] 58 | public virtual string Priority { get; set; } 59 | 60 | [JsonProperty(PropertyName = "resolution")] 61 | public virtual string Resolution { get; set; } 62 | 63 | [JsonProperty(PropertyName = "work_log")] 64 | public virtual string WorkLog { get; set; } 65 | 66 | [JsonProperty(PropertyName = "account_id")] 67 | public virtual string AccountId { get; set; } 68 | 69 | } 70 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/CasesAudit.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the cases_audit table. 17 | /// 18 | [ModuleProperty(ModuleName = "CasesAudit", TableName="cases_audit")] 19 | public partial class CasesAudit : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "parent_id")] 25 | public virtual string ParentId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_created")] 28 | public virtual DateTime? DateCreated { get; set; } 29 | 30 | [JsonProperty(PropertyName = "created_by")] 31 | public virtual string CreatedBy { get; set; } 32 | 33 | [JsonProperty(PropertyName = "field_name")] 34 | public virtual string FieldName { get; set; } 35 | 36 | [JsonProperty(PropertyName = "data_type")] 37 | public virtual string DataType { get; set; } 38 | 39 | [JsonProperty(PropertyName = "before_value_string")] 40 | public virtual string BeforeValueString { get; set; } 41 | 42 | [JsonProperty(PropertyName = "after_value_string")] 43 | public virtual string AfterValueString { get; set; } 44 | 45 | [JsonProperty(PropertyName = "before_value_text")] 46 | public virtual string BeforeValueText { get; set; } 47 | 48 | [JsonProperty(PropertyName = "after_value_text")] 49 | public virtual string AfterValueText { get; set; } 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/CasesBugs.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the cases_bugs table. 17 | /// 18 | [ModuleProperty(ModuleName = "CasesBugs", TableName="cases_bugs")] 19 | public partial class CasesBugs : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "case_id")] 25 | public virtual string CaseId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "bug_id")] 28 | public virtual string BugId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Config.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the config table. 17 | /// 18 | [ModuleProperty(ModuleName = "Config", TableName="config")] 19 | public partial class Config : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "category")] 22 | public virtual string Category { get; set; } 23 | 24 | [JsonProperty(PropertyName = "name")] 25 | public virtual string Name { get; set; } 26 | 27 | [JsonProperty(PropertyName = "value")] 28 | public virtual string Value { get; set; } 29 | 30 | } 31 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ContactsAudit.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the contacts_audit table. 17 | /// 18 | [ModuleProperty(ModuleName = "ContactsAudit", TableName="contacts_audit")] 19 | public partial class ContactsAudit : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "parent_id")] 25 | public virtual string ParentId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_created")] 28 | public virtual DateTime? DateCreated { get; set; } 29 | 30 | [JsonProperty(PropertyName = "created_by")] 31 | public virtual string CreatedBy { get; set; } 32 | 33 | [JsonProperty(PropertyName = "field_name")] 34 | public virtual string FieldName { get; set; } 35 | 36 | [JsonProperty(PropertyName = "data_type")] 37 | public virtual string DataType { get; set; } 38 | 39 | [JsonProperty(PropertyName = "before_value_string")] 40 | public virtual string BeforeValueString { get; set; } 41 | 42 | [JsonProperty(PropertyName = "after_value_string")] 43 | public virtual string AfterValueString { get; set; } 44 | 45 | [JsonProperty(PropertyName = "before_value_text")] 46 | public virtual string BeforeValueText { get; set; } 47 | 48 | [JsonProperty(PropertyName = "after_value_text")] 49 | public virtual string AfterValueText { get; set; } 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ContactsBugs.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the contacts_bugs table. 17 | /// 18 | [ModuleProperty(ModuleName = "ContactsBugs", TableName="contacts_bugs")] 19 | public partial class ContactsBugs : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "contact_id")] 25 | public virtual string ContactId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "bug_id")] 28 | public virtual string BugId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "contact_role")] 31 | public virtual string ContactRole { get; set; } 32 | 33 | [JsonProperty(PropertyName = "date_modified")] 34 | public virtual DateTime? DateModified { get; set; } 35 | 36 | [JsonProperty(PropertyName = "deleted")] 37 | public virtual sbyte? Deleted { get; set; } 38 | 39 | } 40 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ContactsCases.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the contacts_cases table. 17 | /// 18 | [ModuleProperty(ModuleName = "ContactsCases", TableName="contacts_cases")] 19 | public partial class ContactsCases : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "contact_id")] 25 | public virtual string ContactId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "case_id")] 28 | public virtual string CaseId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "contact_role")] 31 | public virtual string ContactRole { get; set; } 32 | 33 | [JsonProperty(PropertyName = "date_modified")] 34 | public virtual DateTime? DateModified { get; set; } 35 | 36 | [JsonProperty(PropertyName = "deleted")] 37 | public virtual sbyte? Deleted { get; set; } 38 | 39 | } 40 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ContactsUsers.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the contacts_users table. 17 | /// 18 | [ModuleProperty(ModuleName = "ContactsUsers", TableName="contacts_users")] 19 | public partial class ContactsUsers : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "contact_id")] 25 | public virtual string ContactId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "user_id")] 28 | public virtual string UserId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/CronRemoveDocuments.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the cron_remove_documents table. 17 | /// 18 | [ModuleProperty(ModuleName = "CronRemoveDocuments", TableName="cron_remove_documents")] 19 | public partial class CronRemoveDocuments : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "bean_id")] 25 | public virtual string BeanId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "module")] 28 | public virtual string Module { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | } 34 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Currency.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the currencies table. 17 | /// 18 | [ModuleProperty(ModuleName = "Currencies", TableName="currencies")] 19 | public partial class Currency : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "name")] 25 | public virtual string Name { get; set; } 26 | 27 | [JsonProperty(PropertyName = "symbol")] 28 | public virtual string Symbol { get; set; } 29 | 30 | [JsonProperty(PropertyName = "iso4217")] 31 | public virtual string Iso4217 { get; set; } 32 | 33 | [JsonProperty(PropertyName = "conversion_rate")] 34 | public virtual double? ConversionRate { get; set; } 35 | 36 | [JsonProperty(PropertyName = "status")] 37 | public virtual string Status { get; set; } 38 | 39 | [JsonProperty(PropertyName = "deleted")] 40 | public virtual sbyte? Deleted { get; set; } 41 | 42 | [JsonProperty(PropertyName = "date_entered")] 43 | public virtual DateTime? DateEntered { get; set; } 44 | 45 | [JsonProperty(PropertyName = "date_modified")] 46 | public virtual DateTime? DateModified { get; set; } 47 | 48 | [JsonProperty(PropertyName = "created_by")] 49 | public virtual string CreatedBy { get; set; } 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/CustomFields.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the custom_fields table. 17 | /// 18 | [ModuleProperty(ModuleName = "CustomFields", TableName="custom_fields")] 19 | public partial class CustomFields : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "bean_id")] 22 | public virtual string BeanId { get; set; } 23 | 24 | [JsonProperty(PropertyName = "set_num")] 25 | public virtual int? SetNum { get; set; } 26 | 27 | [JsonProperty(PropertyName = "field0")] 28 | public virtual string Field0 { get; set; } 29 | 30 | [JsonProperty(PropertyName = "field1")] 31 | public virtual string Field1 { get; set; } 32 | 33 | [JsonProperty(PropertyName = "field2")] 34 | public virtual string Field2 { get; set; } 35 | 36 | [JsonProperty(PropertyName = "field3")] 37 | public virtual string Field3 { get; set; } 38 | 39 | [JsonProperty(PropertyName = "field4")] 40 | public virtual string Field4 { get; set; } 41 | 42 | [JsonProperty(PropertyName = "field5")] 43 | public virtual string Field5 { get; set; } 44 | 45 | [JsonProperty(PropertyName = "field6")] 46 | public virtual string Field6 { get; set; } 47 | 48 | [JsonProperty(PropertyName = "field7")] 49 | public virtual string Field7 { get; set; } 50 | 51 | [JsonProperty(PropertyName = "field8")] 52 | public virtual string Field8 { get; set; } 53 | 54 | [JsonProperty(PropertyName = "field9")] 55 | public virtual string Field9 { get; set; } 56 | 57 | [JsonProperty(PropertyName = "deleted")] 58 | public virtual sbyte? Deleted { get; set; } 59 | 60 | } 61 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/DocumentRevisions.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the document_revisions table. 17 | /// 18 | [ModuleProperty(ModuleName = "DocumentRevisions", TableName="document_revisions")] 19 | public partial class DocumentRevisions : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "change_log")] 25 | public virtual string ChangeLog { get; set; } 26 | 27 | [JsonProperty(PropertyName = "document_id")] 28 | public virtual string DocumentId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "doc_id")] 31 | public virtual string DocId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "doc_type")] 34 | public virtual string DocType { get; set; } 35 | 36 | [JsonProperty(PropertyName = "doc_url")] 37 | public virtual string DocUrl { get; set; } 38 | 39 | [JsonProperty(PropertyName = "date_entered")] 40 | public virtual DateTime? DateEntered { get; set; } 41 | 42 | [JsonProperty(PropertyName = "created_by")] 43 | public virtual string CreatedBy { get; set; } 44 | 45 | [JsonProperty(PropertyName = "filename")] 46 | public virtual string Filename { get; set; } 47 | 48 | [JsonProperty(PropertyName = "file_ext")] 49 | public virtual string FileExt { get; set; } 50 | 51 | [JsonProperty(PropertyName = "file_mime_type")] 52 | public virtual string FileMimeType { get; set; } 53 | 54 | [JsonProperty(PropertyName = "revision")] 55 | public virtual string Revision { get; set; } 56 | 57 | [JsonProperty(PropertyName = "deleted")] 58 | public virtual sbyte? Deleted { get; set; } 59 | 60 | [JsonProperty(PropertyName = "date_modified")] 61 | public virtual DateTime? DateModified { get; set; } 62 | 63 | } 64 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/DocumentsAccounts.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the documents_accounts table. 17 | /// 18 | [ModuleProperty(ModuleName = "DocumentsAccounts", TableName="documents_accounts")] 19 | public partial class DocumentsAccounts : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "date_modified")] 25 | public virtual DateTime? DateModified { get; set; } 26 | 27 | [JsonProperty(PropertyName = "deleted")] 28 | public virtual sbyte? Deleted { get; set; } 29 | 30 | [JsonProperty(PropertyName = "document_id")] 31 | public virtual string DocumentId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "account_id")] 34 | public virtual string AccountId { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/DocumentsBugs.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the documents_bugs table. 17 | /// 18 | [ModuleProperty(ModuleName = "DocumentsBugs", TableName="documents_bugs")] 19 | public partial class DocumentsBugs : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "date_modified")] 25 | public virtual DateTime? DateModified { get; set; } 26 | 27 | [JsonProperty(PropertyName = "deleted")] 28 | public virtual sbyte? Deleted { get; set; } 29 | 30 | [JsonProperty(PropertyName = "document_id")] 31 | public virtual string DocumentId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "bug_id")] 34 | public virtual string BugId { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/DocumentsCases.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the documents_cases table. 17 | /// 18 | [ModuleProperty(ModuleName = "DocumentsCases", TableName="documents_cases")] 19 | public partial class DocumentsCases : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "date_modified")] 25 | public virtual DateTime? DateModified { get; set; } 26 | 27 | [JsonProperty(PropertyName = "deleted")] 28 | public virtual sbyte? Deleted { get; set; } 29 | 30 | [JsonProperty(PropertyName = "document_id")] 31 | public virtual string DocumentId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "case_id")] 34 | public virtual string CaseId { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/DocumentsContacts.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the documents_contacts table. 17 | /// 18 | [ModuleProperty(ModuleName = "DocumentsContacts", TableName="documents_contacts")] 19 | public partial class DocumentsContacts : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "date_modified")] 25 | public virtual DateTime? DateModified { get; set; } 26 | 27 | [JsonProperty(PropertyName = "deleted")] 28 | public virtual sbyte? Deleted { get; set; } 29 | 30 | [JsonProperty(PropertyName = "document_id")] 31 | public virtual string DocumentId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "contact_id")] 34 | public virtual string ContactId { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/DocumentsOpportunities.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the documents_opportunities table. 17 | /// 18 | [ModuleProperty(ModuleName = "DocumentsOpportunities", TableName="documents_opportunities")] 19 | public partial class DocumentsOpportunities : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "date_modified")] 25 | public virtual DateTime? DateModified { get; set; } 26 | 27 | [JsonProperty(PropertyName = "deleted")] 28 | public virtual sbyte? Deleted { get; set; } 29 | 30 | [JsonProperty(PropertyName = "document_id")] 31 | public virtual string DocumentId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "opportunity_id")] 34 | public virtual string OpportunityId { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/EmailAddrBeanRel.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the email_addr_bean_rel table. 17 | /// 18 | [ModuleProperty(ModuleName = "EmailAddrBeanRel", TableName="email_addr_bean_rel")] 19 | public partial class EmailAddrBeanRel : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "email_address_id")] 25 | public virtual string EmailAddressId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "bean_id")] 28 | public virtual string BeanId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "bean_module")] 31 | public virtual string BeanModule { get; set; } 32 | 33 | [JsonProperty(PropertyName = "primary_address")] 34 | public virtual sbyte? PrimaryAddress { get; set; } 35 | 36 | [JsonProperty(PropertyName = "reply_to_address")] 37 | public virtual sbyte? ReplyToAddress { get; set; } 38 | 39 | [JsonProperty(PropertyName = "date_created")] 40 | public virtual DateTime? DateCreated { get; set; } 41 | 42 | [JsonProperty(PropertyName = "date_modified")] 43 | public virtual DateTime? DateModified { get; set; } 44 | 45 | [JsonProperty(PropertyName = "deleted")] 46 | public virtual sbyte? Deleted { get; set; } 47 | 48 | } 49 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/EmailAddresses.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the email_addresses table. 17 | /// 18 | [ModuleProperty(ModuleName = "EmailAddresses", TableName="email_addresses")] 19 | public partial class EmailAddresses : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "email_address")] 25 | public virtual string EmailAddress { get; set; } 26 | 27 | [JsonProperty(PropertyName = "email_address_caps")] 28 | public virtual string EmailAddressCaps { get; set; } 29 | 30 | [JsonProperty(PropertyName = "invalid_email")] 31 | public virtual sbyte? InvalidEmail { get; set; } 32 | 33 | [JsonProperty(PropertyName = "opt_out")] 34 | public virtual sbyte? OptOut { get; set; } 35 | 36 | [JsonProperty(PropertyName = "date_created")] 37 | public virtual DateTime? DateCreated { get; set; } 38 | 39 | [JsonProperty(PropertyName = "date_modified")] 40 | public virtual DateTime? DateModified { get; set; } 41 | 42 | [JsonProperty(PropertyName = "deleted")] 43 | public virtual sbyte? Deleted { get; set; } 44 | 45 | } 46 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/EmailCache.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the email_cache table. 17 | /// 18 | [ModuleProperty(ModuleName = "EmailCache", TableName="email_cache")] 19 | public partial class EmailCache : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "ie_id")] 22 | public virtual string IeId { get; set; } 23 | 24 | [JsonProperty(PropertyName = "mbox")] 25 | public virtual string Mbox { get; set; } 26 | 27 | [JsonProperty(PropertyName = "subject")] 28 | public virtual string Subject { get; set; } 29 | 30 | [JsonProperty(PropertyName = "fromaddr")] 31 | public virtual string Fromaddr { get; set; } 32 | 33 | [JsonProperty(PropertyName = "toaddr")] 34 | public virtual string Toaddr { get; set; } 35 | 36 | [JsonProperty(PropertyName = "senddate")] 37 | public virtual DateTime? Senddate { get; set; } 38 | 39 | [JsonProperty(PropertyName = "message_id")] 40 | public virtual string MessageId { get; set; } 41 | 42 | [JsonProperty(PropertyName = "mailsize")] 43 | public virtual uint? Mailsize { get; set; } 44 | 45 | [JsonProperty(PropertyName = "imap_uid")] 46 | public virtual uint? ImapUid { get; set; } 47 | 48 | [JsonProperty(PropertyName = "msgno")] 49 | public virtual uint? Msgno { get; set; } 50 | 51 | [JsonProperty(PropertyName = "recent")] 52 | public virtual sbyte? Recent { get; set; } 53 | 54 | [JsonProperty(PropertyName = "flagged")] 55 | public virtual sbyte? Flagged { get; set; } 56 | 57 | [JsonProperty(PropertyName = "answered")] 58 | public virtual sbyte? Answered { get; set; } 59 | 60 | [JsonProperty(PropertyName = "deleted")] 61 | public virtual sbyte? Deleted { get; set; } 62 | 63 | [JsonProperty(PropertyName = "seen")] 64 | public virtual sbyte? Seen { get; set; } 65 | 66 | [JsonProperty(PropertyName = "draft")] 67 | public virtual sbyte? Draft { get; set; } 68 | 69 | } 70 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/EmailMarketingProspectLists.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the email_marketing_prospect_lists table. 17 | /// 18 | [ModuleProperty(ModuleName = "EmailMarketingProspectLists", TableName="email_marketing_prospect_lists")] 19 | public partial class EmailMarketingProspectLists : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "prospect_list_id")] 25 | public virtual string ProspectListId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "email_marketing_id")] 28 | public virtual string EmailMarketingId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/EmailTemplates.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the email_templates table. 17 | /// 18 | [ModuleProperty(ModuleName = "EmailTemplates", TableName="email_templates")] 19 | public partial class EmailTemplates : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "date_entered")] 25 | public virtual DateTime? DateEntered { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_modified")] 28 | public virtual DateTime? DateModified { get; set; } 29 | 30 | [JsonProperty(PropertyName = "modified_user_id")] 31 | public virtual string ModifiedUserId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "created_by")] 34 | public virtual string CreatedBy { get; set; } 35 | 36 | [JsonProperty(PropertyName = "published")] 37 | public virtual string Published { get; set; } 38 | 39 | [JsonProperty(PropertyName = "name")] 40 | public virtual string Name { get; set; } 41 | 42 | [JsonProperty(PropertyName = "description")] 43 | public virtual string Description { get; set; } 44 | 45 | [JsonProperty(PropertyName = "subject")] 46 | public virtual string Subject { get; set; } 47 | 48 | [JsonProperty(PropertyName = "body")] 49 | public virtual string Body { get; set; } 50 | 51 | [JsonProperty(PropertyName = "body_html")] 52 | public virtual string BodyHtml { get; set; } 53 | 54 | [JsonProperty(PropertyName = "deleted")] 55 | public virtual sbyte? Deleted { get; set; } 56 | 57 | [JsonProperty(PropertyName = "assigned_user_id")] 58 | public virtual string AssignedUserId { get; set; } 59 | 60 | [JsonProperty(PropertyName = "text_only")] 61 | public virtual sbyte? TextOnly { get; set; } 62 | 63 | [JsonProperty(PropertyName = "type")] 64 | public virtual string Type { get; set; } 65 | 66 | } 67 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Emailman.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the emailman table. 17 | /// 18 | [ModuleProperty(ModuleName = "Emailman", TableName="emailman")] 19 | public partial class Emailman : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "date_entered")] 22 | public virtual DateTime? DateEntered { get; set; } 23 | 24 | [JsonProperty(PropertyName = "date_modified")] 25 | public virtual DateTime? DateModified { get; set; } 26 | 27 | [JsonProperty(PropertyName = "user_id")] 28 | public virtual string UserId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "id")] 31 | public virtual int Id { get; set; } 32 | 33 | [JsonProperty(PropertyName = "campaign_id")] 34 | public virtual string CampaignId { get; set; } 35 | 36 | [JsonProperty(PropertyName = "marketing_id")] 37 | public virtual string MarketingId { get; set; } 38 | 39 | [JsonProperty(PropertyName = "list_id")] 40 | public virtual string ListId { get; set; } 41 | 42 | [JsonProperty(PropertyName = "send_date_time")] 43 | public virtual DateTime? SendDateTime { get; set; } 44 | 45 | [JsonProperty(PropertyName = "modified_user_id")] 46 | public virtual string ModifiedUserId { get; set; } 47 | 48 | [JsonProperty(PropertyName = "in_queue")] 49 | public virtual sbyte? InQueue { get; set; } 50 | 51 | [JsonProperty(PropertyName = "in_queue_date")] 52 | public virtual DateTime? InQueueDate { get; set; } 53 | 54 | [JsonProperty(PropertyName = "send_attempts")] 55 | public virtual int? SendAttempts { get; set; } 56 | 57 | [JsonProperty(PropertyName = "deleted")] 58 | public virtual sbyte? Deleted { get; set; } 59 | 60 | [JsonProperty(PropertyName = "related_id")] 61 | public virtual string RelatedId { get; set; } 62 | 63 | [JsonProperty(PropertyName = "related_type")] 64 | public virtual string RelatedType { get; set; } 65 | 66 | } 67 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/EmailsBeans.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the emails_beans table. 17 | /// 18 | [ModuleProperty(ModuleName = "EmailsBeans", TableName="emails_beans")] 19 | public partial class EmailsBeans : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "email_id")] 25 | public virtual string EmailId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "bean_id")] 28 | public virtual string BeanId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "bean_module")] 31 | public virtual string BeanModule { get; set; } 32 | 33 | [JsonProperty(PropertyName = "campaign_data")] 34 | public virtual string CampaignData { get; set; } 35 | 36 | [JsonProperty(PropertyName = "date_modified")] 37 | public virtual DateTime? DateModified { get; set; } 38 | 39 | [JsonProperty(PropertyName = "deleted")] 40 | public virtual sbyte? Deleted { get; set; } 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/EmailsEmailAddrRel.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the emails_email_addr_rel table. 17 | /// 18 | [ModuleProperty(ModuleName = "EmailsEmailAddrRel", TableName="emails_email_addr_rel")] 19 | public partial class EmailsEmailAddrRel : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "email_id")] 25 | public virtual string EmailId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "address_type")] 28 | public virtual string AddressType { get; set; } 29 | 30 | [JsonProperty(PropertyName = "email_address_id")] 31 | public virtual string EmailAddressId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/EmailsText.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the emails_text table. 17 | /// 18 | [ModuleProperty(ModuleName = "EmailsText", TableName="emails_text")] 19 | public partial class EmailsText : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "email_id")] 22 | public virtual string EmailId { get; set; } 23 | 24 | [JsonProperty(PropertyName = "from_addr")] 25 | public virtual string FromAddr { get; set; } 26 | 27 | [JsonProperty(PropertyName = "reply_to_addr")] 28 | public virtual string ReplyToAddr { get; set; } 29 | 30 | [JsonProperty(PropertyName = "to_addrs")] 31 | public virtual string ToAddrs { get; set; } 32 | 33 | [JsonProperty(PropertyName = "cc_addrs")] 34 | public virtual string CcAddrs { get; set; } 35 | 36 | [JsonProperty(PropertyName = "bcc_addrs")] 37 | public virtual string BccAddrs { get; set; } 38 | 39 | [JsonProperty(PropertyName = "description")] 40 | public virtual string Description { get; set; } 41 | 42 | [JsonProperty(PropertyName = "description_html")] 43 | public virtual string DescriptionHtml { get; set; } 44 | 45 | [JsonProperty(PropertyName = "raw_source")] 46 | public virtual string RawSource { get; set; } 47 | 48 | [JsonProperty(PropertyName = "deleted")] 49 | public virtual sbyte? Deleted { get; set; } 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Folder.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the folders table. 17 | /// 18 | [ModuleProperty(ModuleName = "Folders", TableName="folders")] 19 | public partial class Folder : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "name")] 25 | public virtual string Name { get; set; } 26 | 27 | [JsonProperty(PropertyName = "folder_type")] 28 | public virtual string FolderType { get; set; } 29 | 30 | [JsonProperty(PropertyName = "parent_folder")] 31 | public virtual string ParentFolder { get; set; } 32 | 33 | [JsonProperty(PropertyName = "has_child")] 34 | public virtual sbyte? HasChild { get; set; } 35 | 36 | [JsonProperty(PropertyName = "is_group")] 37 | public virtual sbyte? IsGroup { get; set; } 38 | 39 | [JsonProperty(PropertyName = "is_dynamic")] 40 | public virtual sbyte? IsDynamic { get; set; } 41 | 42 | [JsonProperty(PropertyName = "dynamic_query")] 43 | public virtual string DynamicQuery { get; set; } 44 | 45 | [JsonProperty(PropertyName = "assign_to_id")] 46 | public virtual string AssignToId { get; set; } 47 | 48 | [JsonProperty(PropertyName = "created_by")] 49 | public virtual string CreatedBy { get; set; } 50 | 51 | [JsonProperty(PropertyName = "modified_by")] 52 | public virtual string ModifiedBy { get; set; } 53 | 54 | [JsonProperty(PropertyName = "deleted")] 55 | public virtual sbyte? Deleted { get; set; } 56 | 57 | } 58 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/FoldersRel.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the folders_rel table. 17 | /// 18 | [ModuleProperty(ModuleName = "FoldersRel", TableName="folders_rel")] 19 | public partial class FoldersRel : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "folder_id")] 25 | public virtual string FolderId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "polymorphic_module")] 28 | public virtual string PolymorphicModule { get; set; } 29 | 30 | [JsonProperty(PropertyName = "polymorphic_id")] 31 | public virtual string PolymorphicId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/FoldersSubscriptions.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the folders_subscriptions table. 17 | /// 18 | [ModuleProperty(ModuleName = "FoldersSubscriptions", TableName="folders_subscriptions")] 19 | public partial class FoldersSubscriptions : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "folder_id")] 25 | public virtual string FolderId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "assigned_user_id")] 28 | public virtual string AssignedUserId { get; set; } 29 | 30 | } 31 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ImportMaps.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the import_maps table. 17 | /// 18 | [ModuleProperty(ModuleName = "ImportMaps", TableName="import_maps")] 19 | public partial class ImportMaps : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "name")] 25 | public virtual string Name { get; set; } 26 | 27 | [JsonProperty(PropertyName = "source")] 28 | public virtual string Source { get; set; } 29 | 30 | [JsonProperty(PropertyName = "enclosure")] 31 | public virtual string Enclosure { get; set; } 32 | 33 | [JsonProperty(PropertyName = "delimiter")] 34 | public virtual string Delimiter { get; set; } 35 | 36 | [JsonProperty(PropertyName = "module")] 37 | public virtual string Module { get; set; } 38 | 39 | [JsonProperty(PropertyName = "content")] 40 | public virtual string Content { get; set; } 41 | 42 | [JsonProperty(PropertyName = "default_values")] 43 | public virtual string DefaultValues { get; set; } 44 | 45 | [JsonProperty(PropertyName = "has_header")] 46 | public virtual sbyte? HasHeader { get; set; } 47 | 48 | [JsonProperty(PropertyName = "deleted")] 49 | public virtual sbyte? Deleted { get; set; } 50 | 51 | [JsonProperty(PropertyName = "date_entered")] 52 | public virtual DateTime? DateEntered { get; set; } 53 | 54 | [JsonProperty(PropertyName = "date_modified")] 55 | public virtual DateTime? DateModified { get; set; } 56 | 57 | [JsonProperty(PropertyName = "assigned_user_id")] 58 | public virtual string AssignedUserId { get; set; } 59 | 60 | [JsonProperty(PropertyName = "is_published")] 61 | public virtual string IsPublished { get; set; } 62 | 63 | } 64 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/InboundEmailAutoreply.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the inbound_email_autoreply table. 17 | /// 18 | [ModuleProperty(ModuleName = "InboundEmailAutoreply", TableName="inbound_email_autoreply")] 19 | public partial class InboundEmailAutoreply : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "deleted")] 25 | public virtual sbyte? Deleted { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_entered")] 28 | public virtual DateTime? DateEntered { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "autoreplied_to")] 34 | public virtual string AutorepliedTo { get; set; } 35 | 36 | [JsonProperty(PropertyName = "ie_id")] 37 | public virtual string IeId { get; set; } 38 | 39 | } 40 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/InboundEmailCacheTs.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the inbound_email_cache_ts table. 17 | /// 18 | [ModuleProperty(ModuleName = "InboundEmailCacheTs", TableName="inbound_email_cache_ts")] 19 | public partial class InboundEmailCacheTs : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "ie_timestamp")] 25 | public virtual uint? IeTimestamp { get; set; } 26 | 27 | } 28 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/LeadsAudit.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the leads_audit table. 17 | /// 18 | [ModuleProperty(ModuleName = "LeadsAudit", TableName="leads_audit")] 19 | public partial class LeadsAudit : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "parent_id")] 25 | public virtual string ParentId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_created")] 28 | public virtual DateTime? DateCreated { get; set; } 29 | 30 | [JsonProperty(PropertyName = "created_by")] 31 | public virtual string CreatedBy { get; set; } 32 | 33 | [JsonProperty(PropertyName = "field_name")] 34 | public virtual string FieldName { get; set; } 35 | 36 | [JsonProperty(PropertyName = "data_type")] 37 | public virtual string DataType { get; set; } 38 | 39 | [JsonProperty(PropertyName = "before_value_string")] 40 | public virtual string BeforeValueString { get; set; } 41 | 42 | [JsonProperty(PropertyName = "after_value_string")] 43 | public virtual string AfterValueString { get; set; } 44 | 45 | [JsonProperty(PropertyName = "before_value_text")] 46 | public virtual string BeforeValueText { get; set; } 47 | 48 | [JsonProperty(PropertyName = "after_value_text")] 49 | public virtual string AfterValueText { get; set; } 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/LinkedDocuments.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the linked_documents table. 17 | /// 18 | [ModuleProperty(ModuleName = "LinkedDocuments", TableName="linked_documents")] 19 | public partial class LinkedDocuments : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "parent_id")] 25 | public virtual string ParentId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "parent_type")] 28 | public virtual string ParentType { get; set; } 29 | 30 | [JsonProperty(PropertyName = "document_id")] 31 | public virtual string DocumentId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "document_revision_id")] 34 | public virtual string DocumentRevisionId { get; set; } 35 | 36 | [JsonProperty(PropertyName = "date_modified")] 37 | public virtual DateTime? DateModified { get; set; } 38 | 39 | [JsonProperty(PropertyName = "deleted")] 40 | public virtual sbyte? Deleted { get; set; } 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/MeetingsContacts.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the meetings_contacts table. 17 | /// 18 | [ModuleProperty(ModuleName = "MeetingsContacts", TableName="meetings_contacts")] 19 | public partial class MeetingsContacts : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "meeting_id")] 25 | public virtual string MeetingId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "contact_id")] 28 | public virtual string ContactId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "required")] 31 | public virtual string Required { get; set; } 32 | 33 | [JsonProperty(PropertyName = "accept_status")] 34 | public virtual string AcceptStatus { get; set; } 35 | 36 | [JsonProperty(PropertyName = "date_modified")] 37 | public virtual DateTime? DateModified { get; set; } 38 | 39 | [JsonProperty(PropertyName = "deleted")] 40 | public virtual sbyte? Deleted { get; set; } 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/MeetingsLeads.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the meetings_leads table. 17 | /// 18 | [ModuleProperty(ModuleName = "MeetingsLeads", TableName="meetings_leads")] 19 | public partial class MeetingsLeads : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "meeting_id")] 25 | public virtual string MeetingId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "lead_id")] 28 | public virtual string LeadId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "required")] 31 | public virtual string Required { get; set; } 32 | 33 | [JsonProperty(PropertyName = "accept_status")] 34 | public virtual string AcceptStatus { get; set; } 35 | 36 | [JsonProperty(PropertyName = "date_modified")] 37 | public virtual DateTime? DateModified { get; set; } 38 | 39 | [JsonProperty(PropertyName = "deleted")] 40 | public virtual sbyte? Deleted { get; set; } 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/MeetingsUsers.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the meetings_users table. 17 | /// 18 | [ModuleProperty(ModuleName = "MeetingsUsers", TableName="meetings_users")] 19 | public partial class MeetingsUsers : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "meeting_id")] 25 | public virtual string MeetingId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "user_id")] 28 | public virtual string UserId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "required")] 31 | public virtual string Required { get; set; } 32 | 33 | [JsonProperty(PropertyName = "accept_status")] 34 | public virtual string AcceptStatus { get; set; } 35 | 36 | [JsonProperty(PropertyName = "date_modified")] 37 | public virtual DateTime? DateModified { get; set; } 38 | 39 | [JsonProperty(PropertyName = "deleted")] 40 | public virtual sbyte? Deleted { get; set; } 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Note.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the notes table. 17 | /// 18 | [ModuleProperty(ModuleName = "Notes", TableName="notes")] 19 | public partial class Note : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "assigned_user_id")] 22 | public virtual string AssignedUserId { get; set; } 23 | 24 | [JsonProperty(PropertyName = "id")] 25 | public virtual string Id { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_entered")] 28 | public virtual DateTime? DateEntered { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "modified_user_id")] 34 | public virtual string ModifiedUserId { get; set; } 35 | 36 | [JsonProperty(PropertyName = "created_by")] 37 | public virtual string CreatedBy { get; set; } 38 | 39 | [JsonProperty(PropertyName = "name")] 40 | public virtual string Name { get; set; } 41 | 42 | [JsonProperty(PropertyName = "file_mime_type")] 43 | public virtual string FileMimeType { get; set; } 44 | 45 | [JsonProperty(PropertyName = "filename")] 46 | public virtual string Filename { get; set; } 47 | 48 | [JsonProperty(PropertyName = "parent_type")] 49 | public virtual string ParentType { get; set; } 50 | 51 | [JsonProperty(PropertyName = "parent_id")] 52 | public virtual string ParentId { get; set; } 53 | 54 | [JsonProperty(PropertyName = "contact_id")] 55 | public virtual string ContactId { get; set; } 56 | 57 | [JsonProperty(PropertyName = "portal_flag")] 58 | public virtual sbyte? PortalFlag { get; set; } 59 | 60 | [JsonProperty(PropertyName = "embed_flag")] 61 | public virtual sbyte? EmbedFlag { get; set; } 62 | 63 | [JsonProperty(PropertyName = "description")] 64 | public virtual string Description { get; set; } 65 | 66 | [JsonProperty(PropertyName = "deleted")] 67 | public virtual sbyte? Deleted { get; set; } 68 | } 69 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/OauthConsumer.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the oauth_consumer table. 17 | /// 18 | [ModuleProperty(ModuleName = "OauthConsumer", TableName="oauth_consumer")] 19 | public partial class OauthConsumer : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "name")] 25 | public virtual string Name { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_entered")] 28 | public virtual DateTime? DateEntered { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "modified_user_id")] 34 | public virtual string ModifiedUserId { get; set; } 35 | 36 | [JsonProperty(PropertyName = "created_by")] 37 | public virtual string CreatedBy { get; set; } 38 | 39 | [JsonProperty(PropertyName = "description")] 40 | public virtual string Description { get; set; } 41 | 42 | [JsonProperty(PropertyName = "deleted")] 43 | public virtual sbyte? Deleted { get; set; } 44 | 45 | [JsonProperty(PropertyName = "assigned_user_id")] 46 | public virtual string AssignedUserId { get; set; } 47 | 48 | [JsonProperty(PropertyName = "c_key")] 49 | public virtual string CKey { get; set; } 50 | 51 | [JsonProperty(PropertyName = "c_secret")] 52 | public virtual string CSecret { get; set; } 53 | 54 | } 55 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/OauthNonce.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the oauth_nonce table. 17 | /// 18 | [ModuleProperty(ModuleName = "OauthNonce", TableName="oauth_nonce")] 19 | public partial class OauthNonce : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "conskey")] 22 | public virtual string Conskey { get; set; } 23 | 24 | [JsonProperty(PropertyName = "nonce")] 25 | public virtual string Nonce { get; set; } 26 | 27 | [JsonProperty(PropertyName = "nonce_ts")] 28 | public virtual long? NonceTs { get; set; } 29 | 30 | } 31 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/OauthTokens.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the oauth_tokens table. 17 | /// 18 | [ModuleProperty(ModuleName = "OauthTokens", TableName="oauth_tokens")] 19 | public partial class OauthTokens : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "secret")] 25 | public virtual string Secret { get; set; } 26 | 27 | [JsonProperty(PropertyName = "tstate")] 28 | public virtual string Tstate { get; set; } 29 | 30 | [JsonProperty(PropertyName = "consumer")] 31 | public virtual string Consumer { get; set; } 32 | 33 | [JsonProperty(PropertyName = "token_ts")] 34 | public virtual long? TokenTs { get; set; } 35 | 36 | [JsonProperty(PropertyName = "verify")] 37 | public virtual string Verify { get; set; } 38 | 39 | [JsonProperty(PropertyName = "deleted")] 40 | public virtual sbyte Deleted { get; set; } 41 | 42 | [JsonProperty(PropertyName = "callback_url")] 43 | public virtual string CallbackUrl { get; set; } 44 | 45 | [JsonProperty(PropertyName = "assigned_user_id")] 46 | public virtual string AssignedUserId { get; set; } 47 | 48 | } 49 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/OpportunitiesAudit.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the opportunities_audit table. 17 | /// 18 | [ModuleProperty(ModuleName = "OpportunitiesAudit", TableName="opportunities_audit")] 19 | public partial class OpportunitiesAudit : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "parent_id")] 25 | public virtual string ParentId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_created")] 28 | public virtual DateTime? DateCreated { get; set; } 29 | 30 | [JsonProperty(PropertyName = "created_by")] 31 | public virtual string CreatedBy { get; set; } 32 | 33 | [JsonProperty(PropertyName = "field_name")] 34 | public virtual string FieldName { get; set; } 35 | 36 | [JsonProperty(PropertyName = "data_type")] 37 | public virtual string DataType { get; set; } 38 | 39 | [JsonProperty(PropertyName = "before_value_string")] 40 | public virtual string BeforeValueString { get; set; } 41 | 42 | [JsonProperty(PropertyName = "after_value_string")] 43 | public virtual string AfterValueString { get; set; } 44 | 45 | [JsonProperty(PropertyName = "before_value_text")] 46 | public virtual string BeforeValueText { get; set; } 47 | 48 | [JsonProperty(PropertyName = "after_value_text")] 49 | public virtual string AfterValueText { get; set; } 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/OpportunitiesContacts.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the opportunities_contacts table. 17 | /// 18 | [ModuleProperty(ModuleName = "OpportunitiesContacts", TableName="opportunities_contacts")] 19 | public partial class OpportunitiesContacts : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "contact_id")] 25 | public virtual string ContactId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "opportunity_id")] 28 | public virtual string OpportunityId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "contact_role")] 31 | public virtual string ContactRole { get; set; } 32 | 33 | [JsonProperty(PropertyName = "date_modified")] 34 | public virtual DateTime? DateModified { get; set; } 35 | 36 | [JsonProperty(PropertyName = "deleted")] 37 | public virtual sbyte? Deleted { get; set; } 38 | 39 | } 40 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/OutboundEmail.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the outbound_email table. 17 | /// 18 | [ModuleProperty(ModuleName = "OutboundEmail", TableName="outbound_email")] 19 | public partial class OutboundEmail : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "name")] 25 | public virtual string Name { get; set; } 26 | 27 | [JsonProperty(PropertyName = "type")] 28 | public virtual string Type { get; set; } 29 | 30 | [JsonProperty(PropertyName = "user_id")] 31 | public virtual string UserId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "mail_sendtype")] 34 | public virtual string MailSendtype { get; set; } 35 | 36 | [JsonProperty(PropertyName = "mail_smtptype")] 37 | public virtual string MailSmtptype { get; set; } 38 | 39 | [JsonProperty(PropertyName = "mail_smtpserver")] 40 | public virtual string MailSmtpserver { get; set; } 41 | 42 | [JsonProperty(PropertyName = "mail_smtpport")] 43 | public virtual int? MailSmtpport { get; set; } 44 | 45 | [JsonProperty(PropertyName = "mail_smtpuser")] 46 | public virtual string MailSmtpuser { get; set; } 47 | 48 | [JsonProperty(PropertyName = "mail_smtppass")] 49 | public virtual string MailSmtppass { get; set; } 50 | 51 | [JsonProperty(PropertyName = "mail_smtpauth_req")] 52 | public virtual sbyte? MailSmtpauthReq { get; set; } 53 | 54 | [JsonProperty(PropertyName = "mail_smtpssl")] 55 | public virtual int? MailSmtpssl { get; set; } 56 | 57 | } 58 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Project.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the project table. 17 | /// 18 | [ModuleProperty(ModuleName = "Project", TableName="project")] 19 | public partial class Project : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "date_entered")] 25 | public virtual DateTime? DateEntered { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_modified")] 28 | public virtual DateTime? DateModified { get; set; } 29 | 30 | [JsonProperty(PropertyName = "assigned_user_id")] 31 | public virtual string AssignedUserId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "modified_user_id")] 34 | public virtual string ModifiedUserId { get; set; } 35 | 36 | [JsonProperty(PropertyName = "created_by")] 37 | public virtual string CreatedBy { get; set; } 38 | 39 | [JsonProperty(PropertyName = "name")] 40 | public virtual string Name { get; set; } 41 | 42 | [JsonProperty(PropertyName = "description")] 43 | public virtual string Description { get; set; } 44 | 45 | [JsonProperty(PropertyName = "deleted")] 46 | public virtual sbyte? Deleted { get; set; } 47 | 48 | [JsonProperty(PropertyName = "estimated_start_date")] 49 | public virtual DateTime? EstimatedStartDate { get; set; } 50 | 51 | [JsonProperty(PropertyName = "estimated_end_date")] 52 | public virtual DateTime? EstimatedEndDate { get; set; } 53 | 54 | [JsonProperty(PropertyName = "status")] 55 | public virtual string Status { get; set; } 56 | 57 | [JsonProperty(PropertyName = "priority")] 58 | public virtual string Priority { get; set; } 59 | 60 | } 61 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ProjectTaskAudit.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the project_task_audit table. 17 | /// 18 | [ModuleProperty(ModuleName = "ProjectTaskAudit", TableName="project_task_audit")] 19 | public partial class ProjectTaskAudit : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "parent_id")] 25 | public virtual string ParentId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_created")] 28 | public virtual DateTime? DateCreated { get; set; } 29 | 30 | [JsonProperty(PropertyName = "created_by")] 31 | public virtual string CreatedBy { get; set; } 32 | 33 | [JsonProperty(PropertyName = "field_name")] 34 | public virtual string FieldName { get; set; } 35 | 36 | [JsonProperty(PropertyName = "data_type")] 37 | public virtual string DataType { get; set; } 38 | 39 | [JsonProperty(PropertyName = "before_value_string")] 40 | public virtual string BeforeValueString { get; set; } 41 | 42 | [JsonProperty(PropertyName = "after_value_string")] 43 | public virtual string AfterValueString { get; set; } 44 | 45 | [JsonProperty(PropertyName = "before_value_text")] 46 | public virtual string BeforeValueText { get; set; } 47 | 48 | [JsonProperty(PropertyName = "after_value_text")] 49 | public virtual string AfterValueText { get; set; } 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ProjectsAccounts.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the projects_accounts table. 17 | /// 18 | [ModuleProperty(ModuleName = "ProjectsAccounts", TableName="projects_accounts")] 19 | public partial class ProjectsAccounts : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "account_id")] 25 | public virtual string AccountId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "project_id")] 28 | public virtual string ProjectId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ProjectsBugs.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the projects_bugs table. 17 | /// 18 | [ModuleProperty(ModuleName = "ProjectsBugs", TableName="projects_bugs")] 19 | public partial class ProjectsBugs : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "bug_id")] 25 | public virtual string BugId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "project_id")] 28 | public virtual string ProjectId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ProjectsCases.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the projects_cases table. 17 | /// 18 | [ModuleProperty(ModuleName = "ProjectsCases", TableName="projects_cases")] 19 | public partial class ProjectsCases : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "case_id")] 25 | public virtual string CaseId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "project_id")] 28 | public virtual string ProjectId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ProjectsContacts.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the projects_contacts table. 17 | /// 18 | [ModuleProperty(ModuleName = "ProjectsContacts", TableName="projects_contacts")] 19 | public partial class ProjectsContacts : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "contact_id")] 25 | public virtual string ContactId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "project_id")] 28 | public virtual string ProjectId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ProjectsOpportunities.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the projects_opportunities table. 17 | /// 18 | [ModuleProperty(ModuleName = "ProjectsOpportunities", TableName="projects_opportunities")] 19 | public partial class ProjectsOpportunities : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "opportunity_id")] 25 | public virtual string OpportunityId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "project_id")] 28 | public virtual string ProjectId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ProjectsProducts.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the projects_products table. 17 | /// 18 | [ModuleProperty(ModuleName = "ProjectsProducts", TableName="projects_products")] 19 | public partial class ProjectsProducts : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "product_id")] 25 | public virtual string ProductId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "project_id")] 28 | public virtual string ProjectId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ProspectListCampaigns.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the prospect_list_campaigns table. 17 | /// 18 | [ModuleProperty(ModuleName = "ProspectListCampaigns", TableName="prospect_list_campaigns")] 19 | public partial class ProspectListCampaigns : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "prospect_list_id")] 25 | public virtual string ProspectListId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "campaign_id")] 28 | public virtual string CampaignId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ProspectLists.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the prospect_lists table. 17 | /// 18 | [ModuleProperty(ModuleName = "ProspectLists", TableName="prospect_lists")] 19 | public partial class ProspectLists : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "assigned_user_id")] 22 | public virtual string AssignedUserId { get; set; } 23 | 24 | [JsonProperty(PropertyName = "id")] 25 | public virtual string Id { get; set; } 26 | 27 | [JsonProperty(PropertyName = "name")] 28 | public virtual string Name { get; set; } 29 | 30 | [JsonProperty(PropertyName = "list_type")] 31 | public virtual string ListType { get; set; } 32 | 33 | [JsonProperty(PropertyName = "date_entered")] 34 | public virtual DateTime? DateEntered { get; set; } 35 | 36 | [JsonProperty(PropertyName = "date_modified")] 37 | public virtual DateTime? DateModified { get; set; } 38 | 39 | [JsonProperty(PropertyName = "modified_user_id")] 40 | public virtual string ModifiedUserId { get; set; } 41 | 42 | [JsonProperty(PropertyName = "created_by")] 43 | public virtual string CreatedBy { get; set; } 44 | 45 | [JsonProperty(PropertyName = "deleted")] 46 | public virtual sbyte? Deleted { get; set; } 47 | 48 | [JsonProperty(PropertyName = "description")] 49 | public virtual string Description { get; set; } 50 | 51 | [JsonProperty(PropertyName = "domain_name")] 52 | public virtual string DomainName { get; set; } 53 | 54 | } 55 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/ProspectListsProspects.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the prospect_lists_prospects table. 17 | /// 18 | [ModuleProperty(ModuleName = "ProspectListsProspects", TableName="prospect_lists_prospects")] 19 | public partial class ProspectListsProspects : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "prospect_list_id")] 25 | public virtual string ProspectListId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "related_id")] 28 | public virtual string RelatedId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "related_type")] 31 | public virtual string RelatedType { get; set; } 32 | 33 | [JsonProperty(PropertyName = "date_modified")] 34 | public virtual DateTime? DateModified { get; set; } 35 | 36 | [JsonProperty(PropertyName = "deleted")] 37 | public virtual sbyte? Deleted { get; set; } 38 | 39 | } 40 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Release.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the releases table. 17 | /// 18 | [ModuleProperty(ModuleName = "Releases", TableName="releases")] 19 | public partial class Release : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "deleted")] 25 | public virtual sbyte? Deleted { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_entered")] 28 | public virtual DateTime? DateEntered { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "modified_user_id")] 34 | public virtual string ModifiedUserId { get; set; } 35 | 36 | [JsonProperty(PropertyName = "created_by")] 37 | public virtual string CreatedBy { get; set; } 38 | 39 | [JsonProperty(PropertyName = "name")] 40 | public virtual string Name { get; set; } 41 | 42 | [JsonProperty(PropertyName = "list_order")] 43 | public virtual int? ListOrder { get; set; } 44 | 45 | [JsonProperty(PropertyName = "status")] 46 | public virtual string Status { get; set; } 47 | 48 | } 49 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Role.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the roles table. 17 | /// 18 | [ModuleProperty(ModuleName = "Roles", TableName="roles")] 19 | public partial class Role : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "date_entered")] 25 | public virtual DateTime? DateEntered { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_modified")] 28 | public virtual DateTime? DateModified { get; set; } 29 | 30 | [JsonProperty(PropertyName = "modified_user_id")] 31 | public virtual string ModifiedUserId { get; set; } 32 | 33 | [JsonProperty(PropertyName = "created_by")] 34 | public virtual string CreatedBy { get; set; } 35 | 36 | [JsonProperty(PropertyName = "name")] 37 | public virtual string Name { get; set; } 38 | 39 | [JsonProperty(PropertyName = "description")] 40 | public virtual string Description { get; set; } 41 | 42 | [JsonProperty(PropertyName = "modules")] 43 | public virtual string Modules { get; set; } 44 | 45 | [JsonProperty(PropertyName = "deleted")] 46 | public virtual sbyte? Deleted { get; set; } 47 | 48 | } 49 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/RolesModules.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the roles_modules table. 17 | /// 18 | [ModuleProperty(ModuleName = "RolesModules", TableName="roles_modules")] 19 | public partial class RolesModules : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "role_id")] 25 | public virtual string RoleId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "module_id")] 28 | public virtual string ModuleId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "allow")] 31 | public virtual sbyte? Allow { get; set; } 32 | 33 | [JsonProperty(PropertyName = "date_modified")] 34 | public virtual DateTime? DateModified { get; set; } 35 | 36 | [JsonProperty(PropertyName = "deleted")] 37 | public virtual sbyte? Deleted { get; set; } 38 | 39 | } 40 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/RolesUsers.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the roles_users table. 17 | /// 18 | [ModuleProperty(ModuleName = "RolesUsers", TableName="roles_users")] 19 | public partial class RolesUsers : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "role_id")] 25 | public virtual string RoleId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "user_id")] 28 | public virtual string UserId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/SavedSearch.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the saved_search table. 17 | /// 18 | [ModuleProperty(ModuleName = "SavedSearch", TableName="saved_search")] 19 | public partial class SavedSearch : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "name")] 25 | public virtual string Name { get; set; } 26 | 27 | [JsonProperty(PropertyName = "search_module")] 28 | public virtual string SearchModule { get; set; } 29 | 30 | [JsonProperty(PropertyName = "deleted")] 31 | public virtual sbyte? Deleted { get; set; } 32 | 33 | [JsonProperty(PropertyName = "date_entered")] 34 | public virtual DateTime? DateEntered { get; set; } 35 | 36 | [JsonProperty(PropertyName = "date_modified")] 37 | public virtual DateTime? DateModified { get; set; } 38 | 39 | [JsonProperty(PropertyName = "assigned_user_id")] 40 | public virtual string AssignedUserId { get; set; } 41 | 42 | [JsonProperty(PropertyName = "contents")] 43 | public virtual string Contents { get; set; } 44 | 45 | [JsonProperty(PropertyName = "description")] 46 | public virtual string Description { get; set; } 47 | 48 | } 49 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Scheduler.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the schedulers table. 17 | /// 18 | [ModuleProperty(ModuleName = "Schedulers", TableName="schedulers")] 19 | public partial class Scheduler : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "deleted")] 25 | public virtual sbyte? Deleted { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_entered")] 28 | public virtual DateTime? DateEntered { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "created_by")] 34 | public virtual string CreatedBy { get; set; } 35 | 36 | [JsonProperty(PropertyName = "modified_user_id")] 37 | public virtual string ModifiedUserId { get; set; } 38 | 39 | [JsonProperty(PropertyName = "name")] 40 | public virtual string Name { get; set; } 41 | 42 | [JsonProperty(PropertyName = "job")] 43 | public virtual string Job { get; set; } 44 | 45 | [JsonProperty(PropertyName = "date_time_start")] 46 | public virtual DateTime? DateTimeStart { get; set; } 47 | 48 | [JsonProperty(PropertyName = "date_time_end")] 49 | public virtual DateTime? DateTimeEnd { get; set; } 50 | 51 | [JsonProperty(PropertyName = "job_interval")] 52 | public virtual string JobInterval { get; set; } 53 | 54 | [JsonProperty(PropertyName = "time_from")] 55 | public virtual string TimeFrom { get; set; } 56 | 57 | [JsonProperty(PropertyName = "time_to")] 58 | public virtual string TimeTo { get; set; } 59 | 60 | [JsonProperty(PropertyName = "last_run")] 61 | public virtual DateTime? LastRun { get; set; } 62 | 63 | [JsonProperty(PropertyName = "status")] 64 | public virtual string Status { get; set; } 65 | 66 | [JsonProperty(PropertyName = "catch_up")] 67 | public virtual sbyte? CatchUp { get; set; } 68 | 69 | } 70 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Sugarfeed.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the sugarfeed table. 17 | /// 18 | [ModuleProperty(ModuleName = "Sugarfeed", TableName="sugarfeed")] 19 | public partial class Sugarfeed : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "name")] 25 | public virtual string Name { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_entered")] 28 | public virtual DateTime? DateEntered { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "modified_user_id")] 34 | public virtual string ModifiedUserId { get; set; } 35 | 36 | [JsonProperty(PropertyName = "created_by")] 37 | public virtual string CreatedBy { get; set; } 38 | 39 | [JsonProperty(PropertyName = "description")] 40 | public virtual string Description { get; set; } 41 | 42 | [JsonProperty(PropertyName = "deleted")] 43 | public virtual sbyte? Deleted { get; set; } 44 | 45 | [JsonProperty(PropertyName = "assigned_user_id")] 46 | public virtual string AssignedUserId { get; set; } 47 | 48 | [JsonProperty(PropertyName = "related_module")] 49 | public virtual string RelatedModule { get; set; } 50 | 51 | [JsonProperty(PropertyName = "related_id")] 52 | public virtual string RelatedId { get; set; } 53 | 54 | [JsonProperty(PropertyName = "link_url")] 55 | public virtual string LinkUrl { get; set; } 56 | 57 | [JsonProperty(PropertyName = "link_type")] 58 | public virtual string LinkType { get; set; } 59 | 60 | } 61 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Tracker.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the tracker table. 17 | /// 18 | [ModuleProperty(ModuleName = "Tracker", TableName="tracker")] 19 | public partial class Tracker : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual int Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "monitor_id")] 25 | public virtual string MonitorId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "user_id")] 28 | public virtual string UserId { get; set; } 29 | 30 | [JsonProperty(PropertyName = "module_name")] 31 | public virtual string ModuleName { get; set; } 32 | 33 | [JsonProperty(PropertyName = "item_id")] 34 | public virtual string ItemId { get; set; } 35 | 36 | [JsonProperty(PropertyName = "item_summary")] 37 | public virtual string ItemSummary { get; set; } 38 | 39 | [JsonProperty(PropertyName = "date_modified")] 40 | public virtual DateTime? DateModified { get; set; } 41 | 42 | [JsonProperty(PropertyName = "action")] 43 | public virtual string Action { get; set; } 44 | 45 | [JsonProperty(PropertyName = "session_id")] 46 | public virtual string SessionId { get; set; } 47 | 48 | [JsonProperty(PropertyName = "visible")] 49 | public virtual sbyte? Visible { get; set; } 50 | 51 | [JsonProperty(PropertyName = "deleted")] 52 | public virtual sbyte? Deleted { get; set; } 53 | 54 | } 55 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/UpgradeHistory.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the upgrade_history table. 17 | /// 18 | [ModuleProperty(ModuleName = "UpgradeHistory", TableName="upgrade_history")] 19 | public partial class UpgradeHistory : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "filename")] 25 | public virtual string Filename { get; set; } 26 | 27 | [JsonProperty(PropertyName = "md5sum")] 28 | public virtual string Md5sum { get; set; } 29 | 30 | [JsonProperty(PropertyName = "type")] 31 | public virtual string Type { get; set; } 32 | 33 | [JsonProperty(PropertyName = "status")] 34 | public virtual string Status { get; set; } 35 | 36 | [JsonProperty(PropertyName = "version")] 37 | public virtual string Version { get; set; } 38 | 39 | [JsonProperty(PropertyName = "name")] 40 | public virtual string Name { get; set; } 41 | 42 | [JsonProperty(PropertyName = "description")] 43 | public virtual string Description { get; set; } 44 | 45 | [JsonProperty(PropertyName = "id_name")] 46 | public virtual string IdName { get; set; } 47 | 48 | [JsonProperty(PropertyName = "manifest")] 49 | public virtual string Manifest { get; set; } 50 | 51 | [JsonProperty(PropertyName = "date_entered")] 52 | public virtual DateTime? DateEntered { get; set; } 53 | 54 | [JsonProperty(PropertyName = "enabled")] 55 | public virtual sbyte? Enabled { get; set; } 56 | 57 | } 58 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/UserPreferences.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the user_preferences table. 17 | /// 18 | [ModuleProperty(ModuleName = "UserPreferences", TableName="user_preferences")] 19 | public partial class UserPreferences : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "category")] 25 | public virtual string Category { get; set; } 26 | 27 | [JsonProperty(PropertyName = "deleted")] 28 | public virtual sbyte? Deleted { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_entered")] 31 | public virtual DateTime? DateEntered { get; set; } 32 | 33 | [JsonProperty(PropertyName = "date_modified")] 34 | public virtual DateTime? DateModified { get; set; } 35 | 36 | [JsonProperty(PropertyName = "assigned_user_id")] 37 | public virtual string AssignedUserId { get; set; } 38 | 39 | [JsonProperty(PropertyName = "contents")] 40 | public virtual string Contents { get; set; } 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/UsersFeeds.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the users_feeds table. 17 | /// 18 | [ModuleProperty(ModuleName = "UsersFeeds", TableName="users_feeds")] 19 | public partial class UsersFeeds : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "user_id")] 22 | public virtual string UserId { get; set; } 23 | 24 | [JsonProperty(PropertyName = "feed_id")] 25 | public virtual string FeedId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "rank")] 28 | public virtual int? Rank { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "deleted")] 34 | public virtual sbyte? Deleted { get; set; } 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/UsersLastImport.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the users_last_import table. 17 | /// 18 | [ModuleProperty(ModuleName = "UsersLastImport", TableName="users_last_import")] 19 | public partial class UsersLastImport : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "assigned_user_id")] 25 | public virtual string AssignedUserId { get; set; } 26 | 27 | [JsonProperty(PropertyName = "import_module")] 28 | public virtual string ImportModule { get; set; } 29 | 30 | [JsonProperty(PropertyName = "bean_type")] 31 | public virtual string BeanType { get; set; } 32 | 33 | [JsonProperty(PropertyName = "bean_id")] 34 | public virtual string BeanId { get; set; } 35 | 36 | [JsonProperty(PropertyName = "deleted")] 37 | public virtual sbyte? Deleted { get; set; } 38 | 39 | } 40 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/UsersPasswordLink.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the users_password_link table. 17 | /// 18 | [ModuleProperty(ModuleName = "UsersPasswordLink", TableName="users_password_link")] 19 | public partial class UsersPasswordLink : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "username")] 25 | public virtual string Username { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_generated")] 28 | public virtual DateTime? DateGenerated { get; set; } 29 | 30 | [JsonProperty(PropertyName = "deleted")] 31 | public virtual sbyte? Deleted { get; set; } 32 | 33 | } 34 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/UsersSignatures.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the users_signatures table. 17 | /// 18 | [ModuleProperty(ModuleName = "UsersSignatures", TableName="users_signatures")] 19 | public partial class UsersSignatures : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "date_entered")] 25 | public virtual DateTime? DateEntered { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_modified")] 28 | public virtual DateTime? DateModified { get; set; } 29 | 30 | [JsonProperty(PropertyName = "deleted")] 31 | public virtual sbyte? Deleted { get; set; } 32 | 33 | [JsonProperty(PropertyName = "user_id")] 34 | public virtual string UserId { get; set; } 35 | 36 | [JsonProperty(PropertyName = "name")] 37 | public virtual string Name { get; set; } 38 | 39 | [JsonProperty(PropertyName = "signature")] 40 | public virtual string Signature { get; set; } 41 | 42 | [JsonProperty(PropertyName = "signature_html")] 43 | public virtual string SignatureHtml { get; set; } 44 | 45 | } 46 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Vcal.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the vcals table. 17 | /// 18 | [ModuleProperty(ModuleName = "Vcals", TableName="vcals")] 19 | public partial class Vcal : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "deleted")] 25 | public virtual sbyte? Deleted { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_entered")] 28 | public virtual DateTime? DateEntered { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "user_id")] 34 | public virtual string UserId { get; set; } 35 | 36 | [JsonProperty(PropertyName = "type")] 37 | public virtual string Type { get; set; } 38 | 39 | [JsonProperty(PropertyName = "source")] 40 | public virtual string Source { get; set; } 41 | 42 | [JsonProperty(PropertyName = "content")] 43 | public virtual string Content { get; set; } 44 | 45 | } 46 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarCrmModels/Version.cs: -------------------------------------------------------------------------------- 1 | // 2 | // This file was generated by a T4 template. 3 | // Don't change it directly as your change would get overwritten. Instead, make changes 4 | // to the .tt file (i.e. the T4 template) and save it to regenerate this file. 5 | 6 | // Make sure the compiler doesn't complain about missing Xml comments 7 | #pragma warning disable 1591 8 | 9 | namespace SugarRestSharp.Models 10 | { 11 | using System; 12 | using Newtonsoft.Json; 13 | 14 | 15 | /// 16 | /// A class which represents the versions table. 17 | /// 18 | [ModuleProperty(ModuleName = "Versions", TableName="versions")] 19 | public partial class Version : EntityBase 20 | { 21 | [JsonProperty(PropertyName = "id")] 22 | public virtual string Id { get; set; } 23 | 24 | [JsonProperty(PropertyName = "deleted")] 25 | public virtual sbyte? Deleted { get; set; } 26 | 27 | [JsonProperty(PropertyName = "date_entered")] 28 | public virtual DateTime? DateEntered { get; set; } 29 | 30 | [JsonProperty(PropertyName = "date_modified")] 31 | public virtual DateTime? DateModified { get; set; } 32 | 33 | [JsonProperty(PropertyName = "modified_user_id")] 34 | public virtual string ModifiedUserId { get; set; } 35 | 36 | [JsonProperty(PropertyName = "created_by")] 37 | public virtual string CreatedBy { get; set; } 38 | 39 | [JsonProperty(PropertyName = "name")] 40 | public virtual string Name { get; set; } 41 | 42 | [JsonProperty(PropertyName = "file_version")] 43 | public virtual string FileVersion { get; set; } 44 | 45 | [JsonProperty(PropertyName = "db_version")] 46 | public virtual string DbVersion { get; set; } 47 | 48 | } 49 | } -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarRestSharp.1.0.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattkol/SugarRestSharp/cbe697c518c590f01930f45b104f23d2efa4703b/SugarRestSharpSolution/SugarRestSharp/SugarRestSharp.1.0.0.nupkg -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/SugarRestSharp.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SugarRestSharp 5 | $version$ 6 | $title$ 7 | Kola Oyewumi 8 | Kola Oyewumi 9 | https://github.com/mattkol/SugarRestSharp/blob/master/LICENSE 10 | https://github.com/mattkol/SugarRestSharp 11 | false 12 | Being RESTful with SugarCRM in .NET C# 13 | First release. 14 | Copyright 2016 15 | Wrapper SugarCRM REST API CRUD Client Restful RestSharp 16 | 17 | -------------------------------------------------------------------------------- /SugarRestSharpSolution/SugarRestSharp/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | --------------------------------------------------------------------------------