This is a migrated thread and some comments may be shown as answers.

Problem with Guid fileds

2 Answers 59 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
inanc
Top achievements
Rank 1
inanc asked on 14 Feb 2012, 02:00 PM
Hello,

I have a problem with guid fields. Sometimes when I recompile my wcf project based on openaccess, I see some guid  fields as string while using the dto objects in my client project. Do you have any idea about this issue?

Thank you 
Inanc

2 Answers, 1 is accepted

Sort by
0
inanc
Top achievements
Rank 1
answered on 15 Feb 2012, 09:26 AM
I found a solution for my issue. Regenarating the service client code fixes the issue. Regenarating changes the 'reference.cs' file. After first generation there is no line like 

- using System;

for the Guid columns forexample. After regenarating   the service client code by  using 'Configure service reference' . Actually no need to change even one parameter. After that, you can see guid columns like 

public System.Guid Ekleyen {
            get {
                return this.EkleyenField;
            }
            set {
                if ((this.EkleyenField.Equals(value) != true)) {
                    this.EkleyenField = value;
                    this.RaisePropertyChanged("Ekleyen");
                }
            }
        }

before regeneration it was :

public string Ekleyen {
 
..........

Actually I think there is no problem witt OA orm I think. That seems like a VS 2010 issue..

Regards
Inanc



0
Serge
Telerik team
answered on 17 Feb 2012, 11:28 AM
Hi Inanc,

 I am glad you found a solution to your problem. And yes, regenerating the service always helps when having problems with the code on the client side that is consuming the service. 

Do let us know if you face further trouble. 

All the best,
Serge
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Development (API, general questions)
Asked by
inanc
Top achievements
Rank 1
Answers by
inanc
Top achievements
Rank 1
Serge
Telerik team
Share this question
or