git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| declare @tableName varchar(200) | |
| declare @columnName varchar(200) | |
| declare @nullable varchar(50) | |
| declare @datatype varchar(50) | |
| declare @maxlen int | |
| declare @sType varchar(50) | |
| declare @sProperty varchar(200) | |
| DECLARE table_cursor CURSOR FOR |
| namespace Doit.Erp.Syncfusion | |
| { | |
| public class SyncfusionCrudAppService<TEntity, TEntityDto, TPrimaryKey, TCreateInput, TUpdateInput, TGetInput, TDeleteInput> : ApplicationService, ISyncfusionCrudAppService<TEntity, TEntityDto, TPrimaryKey, TCreateInput, TUpdateInput, TGetInput, TDeleteInput> | |
| where TEntity : class, IEntity<TPrimaryKey> | |
| where TEntityDto : IEntityDto<TPrimaryKey> | |
| where TUpdateInput : IEntityDto<TPrimaryKey> | |
| where TGetInput : IEntityDto<TPrimaryKey> | |
| where TDeleteInput : IEntityDto<TPrimaryKey> | |
| { | |
| protected readonly IRepository<TEntity, TPrimaryKey> Repository; |
| # editorconfig.org | |
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = false |
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <TargetFramework>netcoreapp3.1</TargetFramework> | |
| <Configurations>Debug;Release</Configurations> | |
| </PropertyGroup> | |
| <PropertyGroup> | |
| <ProjectFolder>$([System.IO.Directory]::GetParent($'(ProjectDir)'))</ProjectFolder> | |
| <ParentFolder>$([System.IO.Directory]::GetParent($'(ProjectFolder)'))\</ParentFolder> | |
| <SolutionDir Condition=" '$(SolutionDir)' == '' Or '$(SolutionDir)' == '*Undefined*' ">$(ParentFolder)</SolutionDir> |
| using System; | |
| using System.Globalization; | |
| namespace Extensions | |
| { | |
| public static partial class DateTimeExtensions | |
| { | |
| public static int GetMonthDifference(DateTime startDate, DateTime endDate) | |
| { | |
| int monthsApart = 12 * (startDate.Year - endDate.Year) + startDate.Month - endDate.Month; |
| [HttpGet] | |
| [SwaggerResponse(HttpStatusCode.OK, typeof(FileContentResult))] | |
| [ProducesResponseType(typeof(FileContentResult), StatusCodes.Status200OK)] | |
| [ProducesResponseType(typeof(BadRequestObjectResult), StatusCodes.Status400BadRequest)] | |
| public async Task<FileContentResult> GetFileExcel(FilterPagedAndSortedResultRequestDto input, RequestExcelDto requestExcel) | |
| { | |
| var entities = await GetAllWithFilterAsync(input); | |
| var buffer = await _generator.CreateAsync( | |
| entities.Items.ToList(), |
| # Remove the line below if you want to inherit .editorconfig settings from higher directories | |
| root = true | |
| # C# files | |
| [*.cs] | |
| #### Core EditorConfig Options #### | |
| # Indentation and spacing | |
| indent_size = 4 |
| $userPath = $env:USERPROFILE | |
| $pathExclusions = New-Object System.Collections.ArrayList | |
| $processExclusions = New-Object System.Collections.ArrayList | |
| $pathExclusions.Add('C:\Windows\Microsoft.NET') > $null | |
| $pathExclusions.Add('C:\Windows\assembly') > $null | |
| $pathExclusions.Add($userPath + '\.dotnet') > $null | |
| $pathExclusions.Add($userPath + '\.librarymanager') > $null |
| powercfg /batteryreport /output "C:\battery-report.html" |