Using manually created mapping file with different databases

41 views
Skip to first unread message

Sharique

unread,
Jul 29, 2011, 12:52:35 AM7/29/11
to DbLinq
Hi,

I have manually created the mapping classes as described in this blog
post.
http://blogs.msdn.com/b/spike/archive/2010/01/08/how-to-use-linq-to-sql-without-using-the-designer-generated-classes.aspx

This is working fine with Sql server. Now how I can make it work with
MySql ?

-----
Sharique A Farooqui

Gia Han Tran

unread,
Aug 6, 2011, 11:34:29 AM8/6/11
to DbLinq
You can go there http://yosanai.com/linq-mysql/sample-console-application-using-dblinq

On Jul 28, 9:52 pm, Sharique <saf...@gmail.com> wrote:
> Hi,
>
> I have manually created the mapping classes as described in this blog
> post.http://blogs.msdn.com/b/spike/archive/2010/01/08/how-to-use-linq-to-s...

Sharique

unread,
Aug 12, 2011, 1:15:01 AM8/12/11
to DbLinq
I'm doing the same thing bu getting Nullrefrerence exception on
InsertOnSubmit.
I have manually created mappings.
--Sharique


On Aug 6, 8:34 pm, Gia Han Tran <penguin.han...@gmail.com> wrote:
> You can go therehttp://yosanai.com/linq-mysql/sample-console-application-using-dblinq

Sharique uddin Ahmed Farooqui

unread,
Aug 12, 2011, 1:38:51 AM8/12/11
to DbLinq
I'm getting null exception even on db.table.count also.

System.ArgumentNullException was unhandled
Message=Value cannot be null.
Parameter name: source
Source=System.Core
ParamName=source
StackTrace:
at System.Linq.Queryable.Count[TSource](IQueryable`1 source)
at ConsoleApplication1.Program.Main(String[] args) in E:\test
projects\dblinqTest\ConsoleApplication1\Program.cs:line 22
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly,
String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile,
Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Sharique uddin Ahmed Farooqui
http://safknw.blogspot.com/
"Peace" is the Ultimate desire of mankind.

> --
> You received this message because you are subscribed to the Google Groups "DbLinq" group.
> To post to this group, send email to dbl...@googlegroups.com.
> To unsubscribe from this group, send email to dblinq+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/dblinq?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages