Click here to Skip to main content
15,887,214 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: How to Call Stored Procedure parameters in Class Pin
Ralf Meier9-Jul-15 20:29
mveRalf Meier9-Jul-15 20:29 
AnswerRe: How to Call Stored Procedure parameters in Class Pin
Mohamed Hamdy10-Jul-15 6:23
Mohamed Hamdy10-Jul-15 6:23 
QuestionRe: How to Call Stored Procedure parameters in Class Pin
Eddy Vluggen10-Jul-15 7:10
professionalEddy Vluggen10-Jul-15 7:10 
AnswerRe: How to Call Stored Procedure parameters in Class Pin
Wendelius10-Jul-15 7:18
mentorWendelius10-Jul-15 7:18 
AnswerRe: How to Call Stored Procedure parameters in Class Pin
Eddy Vluggen9-Jul-15 23:07
professionalEddy Vluggen9-Jul-15 23:07 
QuestionRun time Error Can't find project Library, Missing Reference attachemat Extra '0.9 Pin
Member 117214498-Jul-15 20:14
Member 117214498-Jul-15 20:14 
AnswerRe: Run time Error Can't find project Library, Missing Reference attachemat Extra '0.9 Pin
RedDk9-Jul-15 6:52
RedDk9-Jul-15 6:52 
QuestionData Access Layer, returning data Pin
jkirkerx6-Jul-15 12:33
professionaljkirkerx6-Jul-15 12:33 
Alright, I'm clueless here. This is Day 1.

I'm experimenting with a Data Access Layer DLL, so I can centralize all my database stuff in one location.
So I wrote a dal.dll with a context and Model using Entity Framework 6.0, I'm not sure if I got that right either.

So in another project, I referenced my dal.dll, and experimented with a function to load data in a DBSet of the Model

So I wrote this in my experiment, which is failing by the way. I can't figure out how to write the query, or where to place the query, in the DAL or the project using the DAL,
and how to package the data for use else where. It seems to sort of work, it told me that my database didn't match the model, so I must be connecting.
Public Shared Function load_structure_MovieInfo_Array( _
        ByRef m As DbSet(Of Movie),
        ByVal sXc As structure_m_Index_QueryString,
        ByVal p_Type As mv_shared.MovieType) As Integer

        Dim dwExitCode As Integer = 0

        Dim context As MovieContext = New MovieContext()
        Dim query =
            From movies In context.Movies
            Where movies.flv = 1
            Order By movies.MovieName
            Select
                MovieID = movies.MovieID,
                MovieName = movies.MovieName,
                MovieType = movies.MovieType,
                MovieDeliveryType = movies.MovieDeliveryType,
                MoviePath = movies.MoviePath,
                MovieURL = movies.MovieUrl,
                MoviePostage = movies.MoviePostage,
                MovieThumbnail = movies.MovieThumbnail,
                MovieLarge = movies.MovieLarge,
                MoviePlaceHolder = movies.MoviePlaceHolder,
                MovieBitRate = movies.MovieBitRate,
                MovieTime = movies.MovieTime,
                MovieSize = movies.MovieSize,
                MovieDescription = movies.MovieDescription,
                MovieCount = movies.MovieCount,
                MovieContributor = movies.MovieContributor,
                MoviePostDate = movies.MoviePostDate,
                MovieIcon = movies.MovieIcon,
                movie_Parameters = movies.Movie_Parameters

        m = query.Set(Of Movie)()

        Return dwExitCode

AnswerRe: Data Access Layer, returning data Pin
Dave Kreskowiak7-Jul-15 9:36
mveDave Kreskowiak7-Jul-15 9:36 
GeneralRe: Data Access Layer, returning data Pin
jkirkerx7-Jul-15 10:40
professionaljkirkerx7-Jul-15 10:40 
GeneralRe: Data Access Layer, returning data Pin
Dave Kreskowiak7-Jul-15 10:50
mveDave Kreskowiak7-Jul-15 10:50 
GeneralRe: Data Access Layer, returning data Pin
jkirkerx7-Jul-15 11:20
professionaljkirkerx7-Jul-15 11:20 
GeneralRe: Data Access Layer, returning data Pin
jkirkerx7-Jul-15 11:27
professionaljkirkerx7-Jul-15 11:27 
GeneralRe: Data Access Layer, returning data Pin
Dave Kreskowiak7-Jul-15 14:54
mveDave Kreskowiak7-Jul-15 14:54 
GeneralRe: Data Access Layer, returning data Pin
jkirkerx8-Jul-15 12:46
professionaljkirkerx8-Jul-15 12:46 
GeneralRe: Data Access Layer, returning data Pin
Dave Kreskowiak8-Jul-15 14:56
mveDave Kreskowiak8-Jul-15 14:56 
AnswerRe: Data Access Layer, How to get the count, and use the data returned by the first function posted above Pin
jkirkerx7-Jul-15 14:04
professionaljkirkerx7-Jul-15 14:04 
GeneralRe: Data Access Layer, How to get the count, and use the data returned by the first function posted above Pin
Dave Kreskowiak7-Jul-15 15:09
mveDave Kreskowiak7-Jul-15 15:09 
GeneralRe: Data Access Layer, How to get the count, and use the data returned by the first function posted above Pin
jkirkerx8-Jul-15 6:45
professionaljkirkerx8-Jul-15 6:45 
GeneralRe: Data Access Layer, How to get the count, and use the data returned by the first function posted above Pin
jkirkerx8-Jul-15 7:40
professionaljkirkerx8-Jul-15 7:40 
GeneralRe: Data Access Layer, How to get the count, and use the data returned by the first function posted above Pin
Dave Kreskowiak8-Jul-15 9:58
mveDave Kreskowiak8-Jul-15 9:58 
GeneralRe: Data Access Layer, How to get the count, and use the data returned by the first function posted above Pin
jkirkerx8-Jul-15 10:37
professionaljkirkerx8-Jul-15 10:37 
GeneralRe: Data Access Layer, How to get the count, and use the data returned by the first function posted above Pin
Dave Kreskowiak8-Jul-15 11:15
mveDave Kreskowiak8-Jul-15 11:15 
GeneralRe: How to load a single record, and with a join Pin
jkirkerx9-Jul-15 9:08
professionaljkirkerx9-Jul-15 9:08 
GeneralRe: How to load a single record, and with a join Pin
Dave Kreskowiak9-Jul-15 12:08
mveDave Kreskowiak9-Jul-15 12:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.