Click here to Skip to main content
15,923,689 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: IEnumerable(of, DateTime, ToString Format Pin
Dave Kreskowiak13-Jul-15 12:04
mveDave Kreskowiak13-Jul-15 12:04 
GeneralRe: IEnumerable(of, DateTime, ToString Format Pin
jkirkerx13-Jul-15 12:25
professionaljkirkerx13-Jul-15 12:25 
QuestionNeed to talk to USB serial adapter but no port data available on laptop Pin
KarltheSaabNut13-Jul-15 5:37
professionalKarltheSaabNut13-Jul-15 5:37 
AnswerRe: Need to talk to USB serial adapter but no port data available on laptop Pin
Michael_Davies13-Jul-15 5:48
Michael_Davies13-Jul-15 5:48 
GeneralRe: Need to talk to USB serial adapter but no port data available on laptop Pin
KarltheSaabNut13-Jul-15 6:13
professionalKarltheSaabNut13-Jul-15 6:13 
GeneralRe: Need to talk to USB serial adapter but no port data available on laptop Pin
Michael_Davies13-Jul-15 6:19
Michael_Davies13-Jul-15 6:19 
GeneralRe: Need to talk to USB serial adapter but no port data available on laptop Pin
KarltheSaabNut13-Jul-15 6:28
professionalKarltheSaabNut13-Jul-15 6:28 
QuestionData Access Layer using Entity Framework 6.0, Record Inserts Pin
jkirkerx12-Jul-15 12:03
professionaljkirkerx12-Jul-15 12:03 
So I wrote this in SQL Linq for inserting a record. But I think I need a function in my DAL in order to add the record before saving it.
Using context As New CRMContext()
Dim pResults As New CRM_MESSAGES With
  {
  .Subject = sCM.m_Contact_Subject
  }
context.SaveChanges()
So in my context, a class in my DAL DLL, I wrote a SaveChanges. do I need to write another function in order to insert the new row, and then save. Would this be an Overrides function? I looked for some samples, haven't found one yet. Having trouble using the right keywords for this.
Public Class CRMContext
        Inherits DbContext

        Public Sub New()
            MyBase.New("DefaultConnection")

            Database.SetInitializer(New CreateDatabaseIfNotExists(Of CRMContext))
            Entity.Database.SetInitializer(Of CRMContext)(Nothing)

        End Sub

        Public Property CRM_MESSAGES As DbSet(Of CRM_MESSAGES)

        Public Overrides Function SaveChanges() As Integer

            ChangeTracker.DetectChanges()

            'Call IPrepareForSave on entities that support it...
            Return MyBase.SaveChanges()

        End Function

Answer[SOLVED] Pin
jkirkerx12-Jul-15 12:50
professionaljkirkerx12-Jul-15 12:50 
QuestionProblem referencing controls of a dynamically created form. Pin
Abcecedarian11-Jul-15 11:14
Abcecedarian11-Jul-15 11:14 
AnswerRe: Problem referencing controls of a dynamically created form. Pin
Wes Aday11-Jul-15 15:08
professionalWes Aday11-Jul-15 15:08 
GeneralRe: Problem referencing controls of a dynamically created form. Pin
Abcecedarian11-Jul-15 20:22
Abcecedarian11-Jul-15 20:22 
AnswerRe: Problem referencing controls of a dynamically created form. Pin
Ralf Meier11-Jul-15 23:54
mveRalf Meier11-Jul-15 23:54 
GeneralRe: Problem referencing controls of a dynamically created form. Pin
Abcecedarian12-Jul-15 0:47
Abcecedarian12-Jul-15 0:47 
AnswerRe: Problem referencing controls of a dynamically created form. Pin
Ralf Meier12-Jul-15 1:02
mveRalf Meier12-Jul-15 1:02 
GeneralRe: Problem referencing controls of a dynamically created form. Pin
Abcecedarian12-Jul-15 14:59
Abcecedarian12-Jul-15 14:59 
GeneralRe: Problem referencing controls of a dynamically created form. Pin
Ralf Meier12-Jul-15 22:53
mveRalf Meier12-Jul-15 22:53 
GeneralRe: Problem referencing controls of a dynamically created form. Pin
Abcecedarian13-Jul-15 0:30
Abcecedarian13-Jul-15 0:30 
GeneralRe: Problem referencing controls of a dynamically created form. Pin
Ralf Meier13-Jul-15 8:09
mveRalf Meier13-Jul-15 8:09 
QuestionHow to fix a lagging after but a flickering createparams Code Pin
Mohamed Hamdy10-Jul-15 7:09
Mohamed Hamdy10-Jul-15 7:09 
QuestionRe: How to fix a lagging after but a flickering createparams Code Pin
Eddy Vluggen10-Jul-15 7:16
professionalEddy Vluggen10-Jul-15 7:16 
AnswerRe: How to fix a lagging after but a flickering createparams Code Pin
Mohamed Hamdy10-Jul-15 12:40
Mohamed Hamdy10-Jul-15 12:40 
GeneralRe: How to fix a lagging after but a flickering createparams Code Pin
Richard MacCutchan10-Jul-15 21:19
mveRichard MacCutchan10-Jul-15 21:19 
QuestionConnect to remote sql server Pin
satc9-Jul-15 18:05
satc9-Jul-15 18:05 
AnswerRe: Connect to remote sql server Pin
Wendelius9-Jul-15 18:21
mentorWendelius9-Jul-15 18:21 

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.