• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 852
  • Last Modified:

replacement for SqlDbType.UniqueIdentifier

We've decided to  use Enterprise Library for our dataAccess.

For sql parameters, I had:
cmd.Parameters.Add("@LineItemID", SqlDbType.UniqueIdentifier).Value = lineItemID;

In the new method, i have to do this:
this.Database.AddInParameter(cmd, "@LineItemID", DbType.???, lineItemID);

I dont see DbType.UniqueIdentifier... I see for example: DbType.Int32 ..

Anyway to use something else that's close to UniqueIdentifier..
0
Camillia
Asked:
Camillia
  • 2
  • 2
1 Solution
 
jandromedaCommented:
Try DbType.Guid
0
 
CamilliaAuthor Commented:
silly me, Didnt even see it.
0
 
jandromedaCommented:
Well now you saw it.... :)
0
 
CamilliaAuthor Commented:
:)  yep
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now