This file contains 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
version: "3.7" | |
services: | |
mcbedrock: | |
stdin_open: true | |
tty: true | |
image: itzg/minecraft-bedrock-server | |
restart: always | |
ports: | |
- "19132:19132/udp" |
This file contains 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
public abstract class GenericRepository<TKey, TEntity> | |
{ | |
public DatabaseContext context; | |
public GenericRepository(DatabaseContext context) | |
{ | |
this.context = context; | |
} | |
public virtual IEnumerable<TEntity> Get() |
This file contains 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; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Linq; | |
using System.Web; | |
using ImageProcessor; | |
using ImageProcessor.Imaging; | |
using Newtonsoft.Json; |
This file contains 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 Umbraco.Core; | |
using Umbraco.Core.Persistence; | |
using Umbraco.Core.Persistence.Migrations; | |
using Umbraco.Core.Persistence.SqlSyntax; | |
using Umbraco.Core.Logging; | |
using LadyChamber.Core.Persistence.Models; | |
namespace $rootnamespace$.Core.Persistence.Migrations | |
{ | |
// SemVersion: major.minor.revsion+build |
This file contains 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
param( | |
[Parameter(Position=0, | |
HelpMessage="Path to your project.")] | |
[ValidateNotNullOrEmpty()] | |
[string] | |
$ProjectPath = "..\DanskBilglas.UmbracoCMS\Config\", | |
[Parameter(Position=1, | |
HelpMessage="Name of your client dependency config (default: ClientDependency.config)")] | |
[string] |
This file contains 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
<!-- | |
Custom configuration for uCommerce components. | |
Find the ID of component you want to override | |
and use the same ID here. Your component will | |
override the default. | |
You can configure new components here as well | |
and have them injected into existing ones. | |
--> |
This file contains 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; | |
using System.Globalization; | |
namespace Umbraco.Examine | |
{ | |
public static class ExamineExtensions | |
{ | |
private static string format = "yyyyMMddHHmmssfff"; | |
public static DateTime? ParseExamineDate(this string s) |
This file contains 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
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<!-- ACL will be handled by the server --> | |
<IncludeSetAclProviderOnDestination>False</IncludeSetAclProviderOnDestination> | |
<!-- Invalidate files by checksum, and not change date --> | |
<MSDeployUseChecksum>True</MSDeployUseChecksum> | |
<EnableMSDeployBackup>True</EnableMSDeployBackup> | |
</PropertyGroup> | |
</Project> |
This file contains 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
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\MyDatabase.mdf;Initial Catalog=MyDatabase;Integrated Security=True" providerName="System.Data.SqlClient" /> |
This file contains 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
public class ContactFormModel | |
{ | |
[DictionaryDisplayName(nameof(CategoryId))] | |
[DictionaryRequired] | |
public int CategoryId { get; set; } | |
[DictionaryDisplayName(nameof(Subject))] | |
[DictionaryRequired] | |
[DictionaryMinLength(8)] | |
public string Subject { get; set; } |