Please download the required code/Assemblies from here
http://dblinq.codeplex.com/releases/view/27297
<http://dblinq.codeplex.com/releases/view/27297>extract in a folder, then in
that folder add this .BAT file which will generate a .cs file for you.
but remember in BAT file your Database Connection String must be valid:
Assume under line contains BAT file text
------------------------------------------------------------------------------------------------------------
REM: note that the '-sprocs' option is turned on

DbMetal.exe -provider=MySql -database:DBName -server:serverName
-user:UserName -password:YourPassword
-namespace:CompanyName.ProjectName.Data.DTO -code:GeneratedDB.cs -sprocs

PAUSE:

------------------------------------------------------------------------------------------------------------

if you still have any concerns please let me know.;)

On Sun, Feb 21, 2010 at 8:04 PM, Raj <[email protected]> wrote:

> I have a computer running on Windows XP SP3 with Oracle 10 Express
> Edition, .NET 3.5, Latest version of DBLinq
>
> While I use dblinq command I got some error, don't know how to fix it
>
> C:\Program Files\DbLinq-0.18\build>dbmetal /conn:"DATA
> SOURCE=localhost;USER ID=
> system;PASSWORD=sa" /database:XE /language:C# /code:linq.cs /
> dbml:linq.xml -Prov
> ider=Oracle
> DbLinq Database mapping generator 2008 version 0.18.0.0
> for Microsoft (R) .NET Framework version 3.5
> Distributed under the MIT licence (http://linq.to/db/license)
>
> >>> Reading schema from Oracle database
> DbMetal failed:System.NullReferenceException: Object reference not set
> to an ins
> tance of an object.
>   at
> DbLinq.Vendor.Implementation.SchemaLoader.CheckNamesCaseSafety(Database
> sc
> hema)
>   at DbLinq.Vendor.Implementation.SchemaLoader.Load(String
> databaseName, INameA
> liases nameAliases, NameFormat nameFormat, Boolean
> loadStoredProcedures, String
> contextNamespace, String entityNamespace)
>   at DbMetal.Generator.Implementation.Processor.ReadSchema(Parameters
> parameter
> s, ISchemaLoader& schemaLoader) in C:\Users\Pascal\Desktop\DbLinq
> 0.18\src\DbMet
> al\Generator\Implementation\Processor.cs:line 203
>   at
> DbMetal.Generator.Implementation.Processor.ProcessSchema(Parameters
> parame
> ters) in C:\Users\Pascal\Desktop\DbLinq 0.18\src\DbMetal\Generator
> \Implementatio
> n\Processor.cs:line 100
>
> Any help would be appreciated
>
> --
> You received this message because you are subscribed to the Google Groups
> "DbLinq" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<dblinq%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/dblinq?hl=en.
>
>


-- 
Best Regards,
Muhammad Niaz
Sr. Software Engineer
BITLogix (Pvt) Limited

www.ebitlogix.com | ( +9242 3577 4941-3 | ) +92 321 569 4195 |
[email protected]
702 Al-Hafeez Shopping Mall,
Main Boulevard Gulberg, Lahore

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

Reply via email to