Skip to content

Instantly share code, notes, and snippets.

View SerenityInAllThings's full-sized avatar

Serenity SerenityInAllThings

View GitHub Profile
@SerenityInAllThings
SerenityInAllThings / QueryStringRequiredAttribute.cs
Created June 16, 2023 16:46
.net 3.1 QueryStringRequiredAttribute
public class QueryStringRequiredAttribute : Attribute, IActionConstraint
{
public int Order => 0;
public string Name { get; set; }
public QueryStringRequiredAttribute(string queryStringName)
{
Name = queryStringName;
}
@SerenityInAllThings
SerenityInAllThings / gist:a48357a023811c210e2ed29cc229d7eb
Created March 14, 2019 17:07
VSTudio XUnit Fact Snippet definition
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>XUnitFact</Title>
<Author>SerenityInAllThings</Author>
<Description>Basic XUnit Fact with 3 'A's template</Description>
<Shortcut>xunit</Shortcut>
</Header>
<Imports>
function replaceAll(str, valueToBeReplaced, valueToReplace) {
return str.split(valueToBeReplaced).join(valueToReplace);
}
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure
-- --------------------------------------------------
-- Date Created: 04/07/2018 18:30:19
-- Generated from EDMX file: C:\Users\Peterson\Desktop\oficina\Oficina\Models\oficina.edmx
-- --------------------------------------------------
SET QUOTED_IDENTIFIER OFF;
GO