Braincode
11th November 2011, 01:58 PM
misi kak . ane punya web service
Code:
[WebMethod]
public Viw_topItem[] view_topItem(DateTime drTgl, DateTime smpTgl)
{
var query = from log in db.TB_Pesanans
where log.Status == "Lunas" && log.Tanggal >= drTgl && log.Tanggal x.Jumlah).Sum()
};
return query.ToArray();
}
yang ane mau tanya........ mau mana cara descending hasil keluaran nya... atau cara reverse keluaran nya... ane dah coba pake orderby kaga bisa... thanx ya gan :ceriwislove:
</div>
Code:
[WebMethod]
public Viw_topItem[] view_topItem(DateTime drTgl, DateTime smpTgl)
{
var query = from log in db.TB_Pesanans
where log.Status == "Lunas" && log.Tanggal >= drTgl && log.Tanggal x.Jumlah).Sum()
};
return query.ToArray();
}
yang ane mau tanya........ mau mana cara descending hasil keluaran nya... atau cara reverse keluaran nya... ane dah coba pake orderby kaga bisa... thanx ya gan :ceriwislove:
</div>