devforce

Can a WCF data contract contain a WCF operation contract inside it? Why?

不想你离开。 提交于 2020-01-01 10:47:10
问题 I have a data contract say User. It is serializable and goes across the wire. I want an Operation Contract SaveUser(). I can keep SaveUser(User user) in my service contract as an operation contract. But can I keep it inside my data contract itself as its own behavior? Save() should ideally save itself. So as per OO principles, every data contract should know how to save itself and the details should be abstracted from the outer world. Is this possible in WCF? 回答1: I would say no, and rightly

Bad CRC32 in GZIP stream

你离开我真会死。 提交于 2019-12-24 11:24:07
问题 I am using DevForce 2010 and Silverlight 4. When saving entities that contain large amount of binary data, I get this error: Unhandled Error in Silverlight Application The remote server returned an error: NotFound. When debuging the application I see these errors: Unhandled Error in Silverlight Application Insufficient memory to continue the execution of the program. Bad CRC32 in GZIP stream. I found this thread on Ideablades forum that discusses the problem: http://www.ideablade.com/forum

LINQ Union between two tables with the same fields and then returned in a collection

强颜欢笑 提交于 2019-12-23 14:46:12
问题 I have given up trying to create a linq query to retrieve a sql server view which is a union between two tables. I will now try to create a linq union. I have two views, MemberDuesPaid and MemberDuesOwed. They have the same fields in both; (BatchNo, TranDate, DebitAmount, CreditAmount, ReceiptNo, CheckNo, SocSecNo). I also have a helper class in my application which is called MemberTransaction. It has all the same properties. How how do i do a union between the two tables where socSecNo = the

LINQ Union between two tables with the same fields and then returned in a collection

匆匆过客 提交于 2019-12-23 14:46:10
问题 I have given up trying to create a linq query to retrieve a sql server view which is a union between two tables. I will now try to create a linq union. I have two views, MemberDuesPaid and MemberDuesOwed. They have the same fields in both; (BatchNo, TranDate, DebitAmount, CreditAmount, ReceiptNo, CheckNo, SocSecNo). I also have a helper class in my application which is called MemberTransaction. It has all the same properties. How how do i do a union between the two tables where socSecNo = the

How can I stop DevForce from swallowing exceptions in the EntityManager.EntityChanged event

﹥>﹥吖頭↗ 提交于 2019-12-23 05:47:12
问题 This is yet another continuation of a thread from the DevForce forums here. The problem is that DevForce will silently swallow any exception that gets thrown by the EntityManager.EntityChanged event if the change was triggered by a query or import. The relevant code looks like this: internal virtual void OnEntityChanged(EntityChangedEventArgs args) { EventHandler<EntityChangedEventArgs> entityChanged = this.EntityChanged; if (entityChanged == null) return; try { entityChanged(this, args); }

how can i set the context_info sql statement from Devforce IdeaBlade app

你。 提交于 2019-12-22 09:24:33
问题 I need to set the Context_info from my winforms application so that i can notify the database not to run a trigger if my application is saving a record vs a legacy app which needs to run the trigger. Everything i have read says it needs to be set using a data context. In my application i am using an entity manager. How can i set the data context using an entity manager instead of a datacontext. I just want the trigger to know that it is my app running and saving the data on which the trigger

How can I prevent Visual Studio from creating license.licx

▼魔方 西西 提交于 2019-12-06 20:16:13
问题 We use 3rd party controls in our project. Almost every time when I double click on a file which has a design view too, Visual Studio tries to bring up the designer with heroic effort, and after some unresponsiveness it delivers (gives birth to) a license.licx file into our solution. That unnecessarily disturbs the source control: the file addition modifies the csproj too, and also the original code file plus the designer.cs gets checked out (although they don't have any modification in them).

how can i set the context_info sql statement from Devforce IdeaBlade app

一世执手 提交于 2019-12-06 01:16:09
I need to set the Context_info from my winforms application so that i can notify the database not to run a trigger if my application is saving a record vs a legacy app which needs to run the trigger. Everything i have read says it needs to be set using a data context. In my application i am using an entity manager. How can i set the data context using an entity manager instead of a datacontext. I just want the trigger to know that it is my app running and saving the data on which the trigger is set i want to do like the follow. "set context_info '0x1234' at the start of the trigger i check to

Pass in an Expression to linq's Select

两盒软妹~` 提交于 2019-12-04 16:51:26
问题 This is linq-to-sql I have a lot of different classes all doing the same query, but projecting the results slightly differently. Ideally I'd like to be able to have the query in one place, and have the projection passed into the Select method. It works fine for concrete types: public void GetResults() { var junk = db.SiteProducts.Select(Project()); } public Expression<Func<DbEntities.SiteProduct, string>> Project() { return p => p.ProductAlert; } But when I try to return an anonymous type, it

Can a WCF data contract contain a WCF operation contract inside it? Why?

烂漫一生 提交于 2019-12-04 06:08:51
I have a data contract say User. It is serializable and goes across the wire. I want an Operation Contract SaveUser(). I can keep SaveUser(User user) in my service contract as an operation contract. But can I keep it inside my data contract itself as its own behavior? Save() should ideally save itself. So as per OO principles, every data contract should know how to save itself and the details should be abstracted from the outer world. Is this possible in WCF? I would say no, and rightly so. Though I agree with you on the OO principles and encapsulation, WCF deals with SO (Service Oriented)