Below is a working query that i have constructed in my Silverlight4 Project DomainService1 class. The query below returns all customers that have the current logged on users CompanyID. "Select Number" is the users - UserID. "CompanyId" is the users CompanyID.
I need a query written for my DomainService class that returns the current logged on users's Company_UUID to a TextBox. As you can see in the query below, "dim companyid" gets the Company_UUID but i need to return this value to a textbox. This needs to be written in VB. I need this completed today.
Public Function GetV2_Customer_Guid3(ByVal selectNumber As Guid) As IQueryable(Of v2_Customer)
Dim companyid =
(From b In Me.ObjectContext.v2_UsersCompany
Where b.User_UUID = selectNumber
Return From c In Me.ObjectContext.v2_Customer
Where ([url removed, login to view](companyid))
The [url removed, login to view] value will load as soon as the page loads. As you can see below, the [url removed, login to view] value will load as such.
Public Sub New()
[url removed, login to view] = "hello"
[url removed, login to view] = [url removed, login to view] ' "a" will be the CompanyID
[url removed, login to view] = a
' Dim instance As New Guid(g)