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
Function::define = (prop, desc) -> | |
Object.defineProperty this.prototype, prop, desc | |
class GetterSetterTest | |
constructor: (@_obj = {}) -> | |
# 'obj' is defined via the prototype, the definition proxied through | |
# to 'Object.defineProperty' via a function called 'define' providing | |
# some nice syntactic sugar. Remember, the value of '@' is | |
# GetterSetterTest itself when used in the body of it's class definition. |
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 ViewResult Search(Guid customerId) | |
{ | |
SearchModel model = _menuTasks.GetDefaultSearchModelFor(_sessionData.UserId, customerId); | |
model.Results = _menuTasks.Search(model); | |
var customer = _customerTasks.GetCustomerInformationModelForCustomer(customerId); | |
ViewData["Menu"] = new PresentationMenuModel { BusinessName = customer.Name }; | |
ViewData["hide-option-tab"] = true; | |
return View("Search", model); |
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 SystemUser | |
{ | |
public Guid Id { get; set; } | |
public string Name { get; set; } | |
public string Email { get; set; } | |
public string IsActive { 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 sealed class EFCachingCommand : DbCommandWrapper | |
{ | |
// Modified this method to update the EFCachingEnlistment if it exists. | |
private void UpdateAffectedEntitySets() | |
{ | |
if (this.transaction != null) | |
{ | |
if (this.Definition.IsModification) | |
{ |