Breaking Changes. Upgrade Script in Sql directory. Deployed

This commit is contained in:
unknown
2011-02-18 22:24:48 +05:30
parent d4cfa92848
commit 9ed5843dbd
86 changed files with 2616 additions and 2358 deletions

View File

@ -6,25 +6,18 @@ namespace Tanshu.Accounts.Contracts
public class BillItemKey
{
//Old = 0, New = 1, Modifiers = 2+
public BillItemKey(int ProductID, bool IsNew)
public BillItemKey(int ProductID, int KotID)
{
this.ProductID = ProductID;
this.IsNew = IsNew;
this.KotID = KotID;
}
public int ProductID
{
get;
private set;
}
public bool IsNew
{
get;
private set;
}
public int ProductID { get; private set; }
public int KotID { get; private set; }
public override int GetHashCode()
{
return ProductID.GetHashCode() ^ IsNew.GetHashCode();
return ProductID.GetHashCode() ^ KotID.GetHashCode();
}
public override bool Equals(object obj)
{
@ -35,7 +28,7 @@ namespace Tanshu.Accounts.Contracts
}
public override string ToString()
{
return string.Format("{0} - {1}", ProductID, IsNew);
return string.Format("{0} - {1}", ProductID, KotID);
}
public static bool operator ==(BillItemKey a, BillItemKey b)
@ -48,7 +41,7 @@ namespace Tanshu.Accounts.Contracts
if (!(b is BillItemKey))
return false;
return a.ProductID == b.ProductID && a.IsNew == b.IsNew;
return a.ProductID == b.ProductID && a.KotID == b.KotID;
}
public static bool operator !=(BillItemKey a, BillItemKey b)
{