replacement for SqlDbType.UniqueIdentifier

Posted on 2008-11-04
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..
Question by:Camillia
    LVL 12

    Accepted Solution

    Try DbType.Guid
    LVL 7

    Author Comment

    silly me, Didnt even see it.
    LVL 12

    Expert Comment

    Well now you saw it.... :)
    LVL 7

    Author Comment

    :)  yep

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Article by: Ivo
    C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
    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…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now