git remote add origin https://github.co/remote_repository_URL.git
git diff -w : WHITESPACES IGNORE
git diff --name-only : CHANGED FILES
git diff-tree --no-commit-id --name-only -r : CHANGED FILES IN
git status -u : NEW FILES IN SUBDIRS
DELETE FROM users WHERE id IN ( | |
SELECT id FROM ( | |
SELECT * FROM users a | |
LEFT JOIN | |
(SELECT Max(id) max_id FROM users GROUP BY duplic_col) b | |
ON a.id = max_id | |
WHERE max_id IS NULL | |
) AS select_id | |
); | |
-- Successfully Tested! |
using System; | |
using System.Collections.Generic; | |
using Castle.Core; | |
using Castle.Core.Interceptor; | |
using Castle.DynamicProxy; | |
using Castle.MicroKernel.Registration; | |
using Castle.Windsor; | |
namespace Console_CastleDynamicProxy | |
{ |
public static void Main() | |
{ | |
AppDomain.MonitoringIsEnabled = true; | |
/* | |
Work under monitoring here : | |
*/ | |
Console.WriteLine($"Took: {AppDomain.CurrentDomain.MonitoringTotalProcessorTime.TotalMilliseconds:#,###} ms"); | |
Console.WriteLine($"Allocated: {AppDomain.CurrentDomain.MonitoringTotalAllocatedMemorySize / 1024:#,#} kb"); |
git remote add origin https://github.co/remote_repository_URL.git
git diff -w : WHITESPACES IGNORE
git diff --name-only : CHANGED FILES
git diff-tree --no-commit-id --name-only -r : CHANGED FILES IN
git status -u : NEW FILES IN SUBDIRS
using System.Collections; | |
using System.Collections.Generic; | |
using Xunit; | |
public class Person | |
{ | |
public string Name { get; set; } | |
public int Age { get; set; } | |
} |
using Microsoft.AspNetCore; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Logging; | |
public static class Tools | |
{ | |
public static string GetMethodName([System.Runtime.CompilerServices.CallerMemberName] string memberName = "") |
public class HomeController : Controller | |
{ | |
[HttpPost] | |
public async Task<IFacadeMessageResponce> Post([FromBody]IFacadeMessageRequest request) | |
{ | |
if (request == null) | |
{ | |
var ex = new ArgumentNullException(nameof(request)); | |
_logger.LogDebug(new EventId(501, nameof(FacadeController)), ex, ex.Message); | |
throw ex; |
<?xml version="1.0" encoding="utf-8" ?> | |
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
autoReload="true" | |
internalLogLevel="Warn" | |
internalLogFile="c:\temp\internal-nlog.txt"> | |
<!-- Load the ASP.NET Core plugin --> | |
<extensions> | |
<add assembly="NLog.Web.AspNetCore"/> |
// 1. Install-Package -Id Microsoft.AspNet.WebApi -Version 4.0.30506 -DependencyVersion HighestMinor | |
// 2. Update-Package Newtonsoft.Json | |
// 3. Install-Package -Id Microsoft.AspNet.WebApi.Tracing -Version 4.0.30506 // (it is Optional) | |
// For Elmah : Install-Package elmah -Version 1.2.2 | |
// 4. Add - App_Start/WebApiConfig.cs | |
public class WebApiConfig |