Skip to content

Instantly share code, notes, and snippets.

<#@ template language="C#" #>
<#@ output extension=".sql" #>
<#@ assembly name="$(ProjectDir)bin\Debug\SiepaczeKoduSample.Infrastructure.dll" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ import namespace="SiepaczeKoduSample.Infrastructure" #>
<#
IList<Dictionary> dictionary = TemplateHelper.GetDictionary(@"C:\Users\Zaba\Pictures\SiepaczeKodu\Dictionary.csv");
#>
function ValidationRules(viewModel) {
function validateInteger(value, element, param) {
if (!value) {
return false;
}
var parsedNumber = parseFloat(value);
if (isNaN(parsedNumber)) {
return false;
} else {
return (value == parsedNumber);