This is a snapshot of your business plan as a whole and touches on your company profile and goals.
Provides information on what you do, what differentiates your business from others, and the markets your business serves.
// All code in Durandal is written in modules and takes the following form: | |
define(function (require) { | |
var someModule = require('some-module'); | |
//TODO ...other modules required here... | |
return someValue; | |
}); |
<section> | |
<h1>Master / Detail</h1> | |
<form class="form-inline" role="form"> | |
<div class="form-group"> | |
<label class="control-label">Project</label> | |
</div> | |
<div class="form-group"> | |
<select class="form-control" data-bind="options: projects, optionsText: 'name', value: activeProject"></select> | |
</div> |
<section> | |
<div class="col-md-6" data-bind="compose: publisher"></div> | |
<div class="col-md-6" data-bind="compose: subscriber"></div> | |
</section> |
Imports System | |
Imports System.Data | |
Imports System.Data.SqlClient | |
Imports System.Configuration | |
''' <summary> | |
''' A class that facilitates reading data from a database into obhjects of arbirtrary classes. | |
''' </summary> | |
Public Class DatabaseReader |
var Thing = function() { | |
console.log('Assemble this thing.'); | |
} | |
// The decorators will also need to implement these functions to comply with Thing's interface. | |
Thing.prototype = { | |
actionFunction: function() { | |
console.log('actionFunction'); | |
}, | |
valueFunction: function() { |
Public Class Revertable(Of T) | |
private _value as T | |
private _oldValue as T | |
private _hasChanged as Boolean = false | |
public property Value as T | |
get | |
return _value | |
end get |
select n1000.n+n10.n*10+n1.n | |
from (select n=1900 union select 2000) n1000 | |
cross join dbo.Numbers n10 | |
cross join dbo.Numbers n1 | |
--where n1000.n+n10.n*10+n1.n between 1900 and 2099 |
-- This query generates another query which you will then run to get the maximum IDs. | |
SELECT STUFF(( | |
SELECT 'UNION SELECT '''+TABLE_SCHEMA+''' AS TABLE_SCHEMA,'''+TABLE_NAME+''' AS TABLE_NAME,'''+COLUMN_NAME+''' AS COLUMN_NAME,' | |
+'CAST(MAX(['+COLUMN_NAME+']) AS VARCHAR) FROM ['+TABLE_SCHEMA+'].['+TABLE_NAME+'] AS [MaxPrimaryKeyValue] ' | |
FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE | |
WHERE OBJECTPROPERTY(OBJECT_ID(constraint_name), 'IsPrimaryKey') = 1 | |
ORDER BY TABLE_SCHEMA,TABLE_NAME | |
FOR XML PATH('') | |
),1,6,'') + 'ORDER BY TABLE_SCHEMA,TABLE_NAME' |