Dim DBAAW As New MasterDBEntities '(this is the SQL Db) 'first find the Antibody Record by its HCConstructNumber Dim WARecord = (From wq In DBAAW.WP_Whole_Antibodies_on_Sale Where wq.HCConstructNumber = HCC Select wq).FirstOrDefault() If (WARecord IsNot Nothing) Then With WARecord SyncHelp.AddNewMeta(postID, "wpcf-specificitystatement", .SpecificityStatement) Console.WriteLine("Synonyms: " & .Synonyms) SyncHelp.AddNewMeta(postID, "wpcf-synonyms", .Synonyms) End With End If
Public Shared Sub AddNewMeta(p1d As Long, metakey As String, metaval As String) Dim PMMta As New absolute_fix1Entities '(the MySQL Db) Dim xdel As Integer Dim meta = (From s In PMMta.antibody_postmeta Where s.post_id = p1d And s.meta_key = metakey Select s).FirstOrDefault() If meta IsNot Nothing Then meta.meta_value = Mval End If End Sub
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE