Hi
First some info:
- Version: LLBLGen Pro 2.0.0.0
- RTL: 2.0.7.209
- DB: SQL 2005
- Template: Adapter with .Net 2.0
I want to send a ResultsetFields object across a wire using WCF (using tcp-binding). I've already managed to successfully transfer Entity and EntityCollection objects.
When I want to use the ResultsetFields object in a method, and generate the proxy, there's a conflict with the added code in the proxy (the partial class ResultsetFields) and the existing code in the helperclass.
To isolate the issue, I defined a really simple method:
namespace WcfInterfaces
{
[ServiceContract]
public interface IGenService
{
[OperationContract]
void FetchTypedList( ResultsetFields fields );
}
}
(this method is not actually being used. In the end, I want to call something like
DataTable FetchTypedList( ResultsetFields fields, IGroupByCollection groupByClause, IRelationPredicateBucket relation ) )
The generated proxy looks like this:
namespace DataAccessLayer.HelperClasses
{
using System;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
[System.SerializableAttribute()]
public partial class ResultsetFields : object, System.Runtime.Serialization.ISerializable
{
private System.Runtime.Serialization.SerializationInfo info;
public ResultsetFields(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
this.info = info;
}
public System.Runtime.Serialization.SerializationInfo SerializationInfo
{
get
{
return this.info;
}
set
{
this.info = value;
}
}
public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
if ((this.SerializationInfo == null))
{
return;
}
System.Runtime.Serialization.SerializationInfoEnumerator enumerator = this.SerializationInfo.GetEnumerator();
for (
; enumerator.MoveNext();
)
{
System.Runtime.Serialization.SerializationEntry entry = enumerator.Current;
info.AddValue(entry.Name, entry.Value);
}
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="IGenService")]
public interface IGenService
{ [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IGenService/FetchTypedList", ReplyAction="http://tempuri.org/IGenService/FetchTypedListResponse")]
void FetchTypedList(DataAccessLayer.HelperClasses.ResultsetFields fields);
}
The exact error message is:
The type 'DataAccessLayer.HelperClasses.ResultsetFields' in 'c:\Develop\Source\Library\Database\proxy.cs' conflicts with the imported type 'DataAccessLayer.HelperClasses.ResultsetFields' in 'c:\Develop\Source\AppName\DatabaseGeneric\bin\Debug\DataAccessLayer.dll'. Using the one in 'c:\Develop\Source\Library\Database\proxy.cs'
I've searched on this forum with the keywords ResultsetFields and webservice or wcf but I didn't find any results. So I have the feeling it shouldnt be any problem to perform this action...On the other hand, There's not much I can do wrong really.
Can you help me out here?