wcf-data-services

Connecting MVVMCross Portable connect to WCF DataService. Is it possible?

ぃ、小莉子 提交于 2019-12-11 06:38:19
问题 I need your advice people. I am writing an engineering work project in VS2012 about used car dealership. I have a SQL Database, WCF DataService, WPF application (which is connected succesfuly to WCF) and wanted to create Mobile version for it too. I chose MVVMCross Portable to create Mono For Android and WP7 app with one core. And I have problems here with connecting to my WCF DataService from mobile portable core like: Unable to add a service reference to the specified OData feed because WCF

How do set the timeout on a wcf service caller in Delphi?

北城以北 提交于 2019-12-11 06:28:00
问题 I have a straightforward call to a wcf service hosted by iis I'm Delphi 2010 The operation being called on the service could take several minutes What is the best way of avoiding a timeout error in Delphi? I deliberately put a Thread.Sleep inside my WCF Service force it to wait for 31 seconds After 30 seconds I got the error Project raised exception class ESOAPHTTPException with message 'The handle is in the wrong state for the requested operation - URL:http://10.1.1.4/STC.WcfServices.Host

WCF + Entity Framework CodeFirst = DynamicProxies exception?

落爺英雄遲暮 提交于 2019-12-11 05:05:26
问题 I'm trying out EF CodeFirst CTP 5, and using it with WCF Data Services. I'm getting an error that Internal Server Error. The type 'System.Data.Entity.DynamicProxies.Person_C321D7A37002A1B42C3CBAECC27983D77F6B7FCC3F837175B2CBB55CCA66AF55' is not a complex type or an entity type. If I use an edmx-generated Person off the db created by CF, I have no issue. In reading up, it seems that the lazy loading is screwing things up, and previous EF versions have let me turn off proxy generation with an

HttpContext.Current is null in WCF Data Service hosted in Windows Service

家住魔仙堡 提交于 2019-12-11 04:16:42
问题 I created a WCF Data Service inside a Windows Service and tried to access the HttpContext. I added this to my config file: <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> </system.serviceModel> However, when I try to access it, it is null. protected override void OnStartProcessingRequest(ProcessRequestArgs args) { base.OnStartProcessingRequest(args); HttpContext httpContext = HttpContext.Current; File.AppendAllText(@"c:\Temp\ERROR.log", httpContext !=

Passing Array parameter from C# to Oracle collection type of table

谁都会走 提交于 2019-12-11 03:35:35
问题 I have declare a collection Table and record in PLSQL Specification. type loan_recov_rec is record(v_prncpl_ed_cd number(3),v_prncpl_recov number (7),v_int_ed_cd number(3), v_int_recov,number(5)); type loan_recov_tbl is table of loan_recov_rec index by binary_integer; procedure pr_final_settlement(v_loan_recov_tbl in loan_recov_tbl); So, I pass the Array parameter from C# page cmd.ArrayBindCount = v_loan_recov_tbl.Length; Oracle.DataAccess.Client.OracleParameter P_loan_recov = new Oracle

Specify datetime format for WCF Data Service

最后都变了- 提交于 2019-12-11 03:08:21
问题 Is there a way to specify the formatting of DateTime data returned by a WCF data service? This question seems to say that the default format, which looks like /Date(1339515455030)/ , is the number of milliseconds since midnight Januery 1, 1970 UTC. I can figure out how to parse that if I have to but I'd rather specify a more friendly format. 回答1: The OData DateTime format (assuming you haven't already formatted it out to a string) is dependent on the wire format negotiated between client and

OData / WCF Data Service not working with complex type

て烟熏妆下的殇ゞ 提交于 2019-12-10 19:04:42
问题 I'm brand new to OData and WCF data services so this might be an easy problem. I'm using VS Web Developer Express 2010 where I have a very simple WCF Data Service hosted in a console app. It's returning an IQuerable collection of a simple 'Study' class from a repository (located in a separated dll project), which in turn retrieves 'Study' classes from a db project in another dll (so 3 projects in the solution). I also have an 'Experiment' class in the db project and there can be multiple

entity framework 4.1 two tables with the same property name

南楼画角 提交于 2019-12-10 14:22:38
问题 i'm having some problems with entity framework and a sql database. so my problem is this: in my database there are two tables that have the same property, they are identical in type and length but they are not related in any way. no foreign key whatsoever. as soon as i start to interact with the database entity framework spits out the famous error: error 0019: Each property name in a type must be unique. Property name was already defined. i'm using the code first approach by the way. this is

Data compression for ADO.NET data services

戏子无情 提交于 2019-12-10 11:22:56
问题 I have an ADO.NET data service exposed by a .NET app (not IIS) which is consumed by a .NET client app. Some calls to this data service return large amounts of data. I'd like to compress the XML data on the wire to reduce payload and improve performance. Is this possible? 回答1: I assume you're hosting using WCF in your .NET "app"? If so, you would need write some custom MessageEncoder implementation because WCF does not provide this out of the box. Luckily there is a sample in the SDK that you

WCF data service permission on individual table columns instead of on whole entities

点点圈 提交于 2019-12-10 11:19:09
问题 Note the bounty is asking about the edited portion of this question. First part is describing the problem I have a table Customer ----- Name Address SocialSecurity Phone Etc.... I have another table called Permissions ----- IdOfUser Can_C_Address Can_R_Address Can_U_Address Can_D_Address Can_C_Phone Can_R_Phone Can_U_Phone Can_D_Phone Etc... note CRUD stands for create, read, update and delete How can I make sure at the server side that a user query the database as: contex.Customers.ToList();