c# - Why can't I use my data contracts form my IService? -
i have following data contracts defined in iservice:
[datacontract] public class pumpclass { [datamember] public int id { get; set; } [datamember] public double litrespumped { get; set; } [datamember] public double price { get; set; } [datamember] public string fueltype { get; set; } [datamember] public datetime date { get; set; } [datamember] public bool requestuse { get; set; } [datamember] public bool requestaccepted { get; set; } [datamember] public bool finished { get; set; } } [datacontract] public class dieseltank { [datamember] public double maximumlevel { get; set; } [datamember] public double warninglevel { get; set; } [datamember] public double currentlevel { get; set; } [datamember] public bool orderfuel { get; set; } } [datacontract] public class unleadedtank { [datamember] public double maximumlevel { get; set; } [datamember] public double warninglevel { get; set; } [datamember] public double currentlevel { get; set; } [datamember] public bool orderfuel { get; set; } } [datacontract] public class costoffuel { [datamember] public double dieselsupplierprice { get; set; } [datamember] public double dieselprice { get; set; } [datamember] public double unleadedsupplierprice { get; set; } [datamember] public double unleadedprice { get; set; } } [datacontract] public class sale { [datamember] public double value { get; set; } [datamember] public double volumesold { get; set; } [datamember] public datetime datesold { get; set; } } [datacontract] public class ordered { [datamember] public double volume { get; set; } [datamember] public double cost { get; set; } }
but pumpclass
, dieseltank
, unleadedtank
can seen service uses interface , don't know why. these 3 show in data sources visual studio well.
Comments
Post a Comment