[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

replacement for SqlDbType.UniqueIdentifier

Posted on 2008-11-04
4
Medium Priority
?
845 Views
Last Modified: 2010-08-05
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
Comment
Question by:Camillia
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
jandromeda earned 2000 total points
ID: 22882598
Try DbType.Guid
0
 
LVL 7

Author Comment

by:Camillia
ID: 22882639
silly me, Didnt even see it.
0
 
LVL 12

Expert Comment

by:jandromeda
ID: 22882648
Well now you saw it.... :)
0
 
LVL 7

Author Comment

by:Camillia
ID: 22882714
:)  yep
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Screencast - Getting to Know the Pipeline
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question