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
DevExpress eXpressApp Framework (XAF) - Extension property with drop-down list | |
public interface IModelExDatabaseColumn : IModelColumn | |
{ | |
[Category("Data")] | |
[Required] | |
string DatabaseColumn { get; set; } | |
} | |
public override void ExtendModelInterfaces(ModelInterfaceExtenders extenders) | |
{ |
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
if not OBJECT_ID('dbo.Proc_BackupDatabaseDailyWithLog') is null | |
Drop Proc dbo.Proc_BackupDatabaseDailyWithLog | |
go | |
Create Proc dbo.Proc_BackupDatabaseDailyWithLog( | |
@DbName sysname, | |
@TargetPath nvarchar(1000)) as | |
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
if not OBJECT_ID('dbo.Proc_BackupDatabaseDailyWithLog') is null | |
Drop Proc dbo.Proc_BackupDatabaseDailyWithLog | |
go | |
Create Proc dbo.Proc_BackupDatabaseDailyWithLog( | |
@DbName sysname, | |
@TargetPath nvarchar(1000)) as | |
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
namespace WpfApplication1 | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Windows; | |
using DevExpress.Xpo; | |
using DevExpress.Xpo.DB; |
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
; ========================================================== | |
; Config file for .NET Reflector including assembly lists | |
; for several versions of DevExpress XAF. | |
; | |
; Copy this file to: | |
; %LocalAppData%\Red Gate\.NET Reflector 8\Reflector.cfg | |
; ========================================================== | |
[AssemblyBrowser] | |
AssemblyList="DevExpress 13.2" |
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.ComponentModel; | |
using System.Linq; | |
using System.Linq.Expressions; | |
namespace TechTalk.SpecFlow.ObjectConversion | |
{ | |
public static class ObjectConverterExtensions | |
{ |
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
# Boxstarter script for blog post http://blog.zerosharp.com/provisioning-a-new-development-machine-with-boxstarter | |
# Allow reboots | |
$Boxstarter.RebootOk=$true | |
$Boxstarter.NoPassword=$false | |
$Boxstarter.AutoLogin=$true | |
# Basic setup | |
Update-ExecutionPolicy Unrestricted | |
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions |
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
#region Imports | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Collections; | |
using System.Configuration; | |
using System.IO; | |
#endregion |
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.IO; | |
using System.Linq; | |
using System.Web; | |
namespace Thinktecture.Helpers | |
{ | |
public class MimeTypeLookup | |
{ |
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
function ZipFiles($zipfilename, $sourcedir) | |
{ | |
[Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem") | |
$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal | |
[System.IO.Compression.ZipFile]::CreateFromDirectory($sourcedir, $zipfilename, $compressionLevel, $false) | |
} | |
# Step 1 - Sign all output assemblies | |
# TODO |