Skip to content

Instantly share code, notes, and snippets.

View AlexanderByndyu's full-sized avatar

Alexander Byndyu AlexanderByndyu

View GitHub Profile
public partial class DbContextDataContext : System.Data.Linq.DataContext, IStorage
{
...
public System.Data.Linq.Table<Author> Authors
{
get
{
return this.GetTable<Author>();
}
}
namespace ПредметнаяОбласть
{
using System;
using System.Collections.Generic;
internal abstract class Документ
{
private readonly List<Строка_Документа> строки = new List<Строка_Документа>();
public Документ()
@AlexanderByndyu
AlexanderByndyu / CustomSmtpAppender.cs
Last active February 28, 2020 07:02
log4net, custom SmtpAppender with Subject layout. Download NuGet: https://nuget.org/packages/log4net.Appender.SmtpAppenderWithSubjectLayout
public class CustomSmtpAppender : SmtpAppender
{
public PatternLayout SubjectLayout { get; set; }
protected override void SendBuffer(LoggingEvent[] events)
{
PrepareSubject(events);
base.SendBuffer(events);
}