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
private static getMonthName(month: number): string | |
{ | |
if (month == null) | |
{ | |
return 'XXX'; | |
} | |
var date = new Date(); | |
date.setMonth(month - 1); // The problem code. | |
return date.toLocaleString("en-us", { month: "short" }); |
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
// Basic unitOfWork pattern as described by Martin Fowler (http://martinfowler.com/eaaCatalog/unitOfWork.html) | |
// Other methos as 'registerNew' are going to be managed by each repository | |
public interface IUnitOfWork : IDisposable | |
{ | |
void Commit(); | |
Task CommitAsync(); | |
void Rollback(); | |
} | |
public interface IUnitOfWorkFactory |