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
| Simple dotless pre-build event command line in Mvc2 Proj file: | |
| $(SolutionDir)..\lib\dotless\dotless.compiler.exe $(ProjectDir)content\site.less $(ProjectDir)content\site.css |
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
| _sessionFactory = | |
| Fluently.Configure() | |
| .Database(SQLiteConfiguration.Standard.ShowSql().InMemory()) | |
| .Mappings(m => m.FluentMappings.AddFromAssembly(assemblyContainingMapping)) | |
| .ExposeConfiguration(cfg => new SchemaExport(cfg).Execute(true, true, false)) | |
| .BuildSessionFactory(); |
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
| _sessionFactory = | |
| Fluently.Configure() | |
| .Database(SQLiteConfiguration.Standard.ShowSql().InMemory()) | |
| .Mappings(m => m.FluentMappings.AddFromAssembly(assemblyContainingMapping)) | |
| .ExposeConfiguration(cfg => new SchemaExport(cfg).Execute(true, true, false, _session.Connection, Console.Out)) | |
| .BuildSessionFactory(); |
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
| public class InMemoryDatabaseTest : IDisposable | |
| { | |
| private static Configuration _cfg; | |
| private static ISessionFactory _sessionFactory; | |
| protected ISession _session; | |
| public InMemoryDatabaseTest(Assembly assemblyContainingMapping) | |
| { | |
| if (_sessionFactory == null) | |
| { |
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
| Fluently.Configure().Database(MsSqlConfiguration.MsSql2008 | |
| .ConnectionString(c => c | |
| .Server(@"localhost\SQLEXPRESS") | |
| .Database("foo") | |
| .Username("foo") | |
| .Password("foo"))) | |
| .Mappings(m => | |
| m.FluentMappings.AddFromAssemblyOf<FooMap>() | |
| .Conventions.Add(FluentNHibernate.Conventions.Helpers.Table.Is(x => "foos")) | |
| ) |
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
| <body> | |
| <div id="Container"> | |
| <div id="Header"> | |
| <div id="TopNav"> | |
| <div class="wrapper"> | |
| Download at: [codeplex link here] <span><a href="#">Overview</a></span> <span><a | |
| href="#">Screencasts</a></span> <span><a href="#">Api Documentation</a></span> | |
| </div> | |
| </div> | |
| <div id="MastHead"> |
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
| Use.Transaction(GetSessionFactory(facilityId), session => { | |
| facilityName = session | |
| .Linq<FacilityHierarchy>() | |
| .Where(x => x.FACID == facilityId) | |
| .Select(x => x.DOM_NAME) | |
| .SingleOrDefault(); | |
| }); |
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
| // 1: how could you rewrite the following to make it shorter? | |
| if (foo) { | |
| bar.doSomething(el); | |
| } else { | |
| bar.doSomethingElse(el); | |
| } | |
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
| criteria.formbuilder = (function () { | |
| var reloadCriteria = function () { | |
| console.log('hi'); | |
| }; | |
| return { | |
| reloadCriteria: reloadCriteria, | |
| }; |
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
| require 'rubygems' | |
| require 'albacore' | |
| task :default => :build | |
| msbuild :build do |msb| | |
| msb.solution = "source/ContractManager.sln" | |
| msb.targets :clean, :build | |
| msb.properties :configuration => :release | |
| end |
OlderNewer