This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN -- Delete all tables in order to re-create. | |
DECLARE @sql NVARCHAR(MAX); | |
SET @sql = N''; | |
SELECT @sql = @sql + N' | |
ALTER TABLE ' + QUOTENAME(s.name) + N'.' | |
+ QUOTENAME(t.name) + N' DROP CONSTRAINT ' | |
+ QUOTENAME(c.name) + ';' | |
FROM sys.objects AS c | |
INNER JOIN sys.tables AS t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Ganss.XSS; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace VEIC.Tracker.Services.Tests.Shared | |
{ | |
[TestClass] | |
public class HtmlSanitizerTests | |
{ | |
private IHtmlSanitizer _htmlSanitizer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using this file to rename the gist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Domain.Toolkit; | |
using Domain.Sample.AppModels.Attributes; | |
using Domain.Sample.DbModels.Sample; | |
namespace Domain.Sample.Services.Attributes; | |
public class AttributeCrudCommands : IAttributeCrudCommands | |
{ | |
private readonly SampleDbContext _db; | |
private readonly ILogger<AttributeCrudCommands> _logger; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.ObjectModel; | |
using System.Runtime.CompilerServices; | |
using System.Security.Cryptography.X509Certificates; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.EntityFrameworkCore; | |
namespace MyApplication.Web.Controllers | |
{ | |
public class ProductControl : Controller | |
{ |
OlderNewer