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
public void BookPriceUpdate(IUnitOfWork work, Product product, decimal oldPrice, decimal oldCost, decimal newPrice, decimal newCost) | |
{ | |
var stock = product.StockPerOrganizationUnit; | |
foreach (var s in stock) | |
{ | |
var onHand = s.Value; | |
var orgID = s.Key; | |
var rule = GetRule(work, AccountingTypes.StockRevaluation, product.LedgerClassID, orgID); |
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
class Employee | |
{ | |
public IList<Order> Orders { get; set; } | |
} | |
class Order | |
{ | |
public int OrderID { get; set; } | |
public IList<Customer> Customers { get; set; } |
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
public IList<Stock> ListStock(int? productID, int? orgID, StockLabel? label, ProductConditionTypes? condition, IList<string> includes) | |
{ | |
var builder = new SqlBuilder(); | |
var template = builder.AddTemplate(@" | |
select /**select**/ from Stock s | |
/**join**/ | |
/**where**/"); |
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
using ServiceStack.Text; | |
using System; | |
namespace JsvEmptyStrings | |
{ | |
class Program | |
{ | |
public class Dto | |
{ | |
public string Foo { get; set; } |