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 FooMap : ClassMap<Foo> | |
{ | |
public FooMap() | |
{ | |
Table("Foo"); | |
Id(f => f.Id, "Id").GeneratedBy.Identity(); | |
Map(f => f.CustomField).CustomSqlType("varchar (60)"); | |
} | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<body> | |
<h1>My Site</h1> | |
<p>Lorem ipsum...</p> | |
</body> | |
</html> |
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
[MetadataType(typeof(PersonMetadata))] | |
public partial class Person | |
{ | |
public class PersonMetadata | |
{ | |
[Required] | |
public string Name { get; set; } | |
} | |
} |
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 string GetFieldNames(Type type) | |
{ | |
return string.Join(",", GetFields(type).Select(t => t.Name).ToArray()); | |
} | |
public static IEnumerable<FieldInfo> GetFields(Type currentType) | |
{ | |
foreach (FieldInfo fi in currentType.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly)) | |
{ | |
if (!(typeof(Delegate)).IsAssignableFrom(fi.FieldType)) yield return fi; |
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
a.button { | |
background: #222; | |
border: solid 1px #666; | |
color: #666; | |
} | |
a.button:hover { | |
background: #06a; | |
border: solid 1px #fff; | |
color: #fff; |
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
.transition { | |
-moz-transition: all 0.5s ease; /* Firefox */ | |
-o-transition: all 0.5s ease; /* Opera */ | |
-webkit-transition: all 0.5s ease; /* Safari and Chrome */ | |
-ms-transition: all 0.5s ease; /* Internet Explorer */ | |
transition: all 0.5s ease; | |
} |
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.Web.Mvc; | |
using DoddleReport.Web; | |
namespace Product.Web.Areas.Admin | |
{ | |
public class AdminAreaRegistration : AreaRegistration | |
{ | |
public override string AreaName | |
{ | |
get { return "Admin"; } |
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
/* Coins */ | |
body { background: #ccb; } | |
.coin { | |
display: inline-block; | |
} | |
.coin:after { | |
content: ' '; | |
background: #f0f; | |
border-radius: 50%; |
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
/* Coins */ | |
@import url(http://fonts.googleapis.com/css?family=IM+Fell+English); | |
body { | |
background: url('http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/bedge_grunge_@2X.png'); | |
background-size: 50%; | |
cursor: default; | |
} | |
.price { |
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
/* Coins */ | |
@import url(http://fonts.googleapis.com/css?family=IM+Fell+English); | |
body { | |
background: url('http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/bedge_grunge_@2X.png'); | |
background-size: 50%; | |
cursor: default; | |
} | |
.price { |
OlderNewer