Giter Club home page Giter Club logo

nmg's People

Contributors

bradwestness avatar braian87b avatar carloscs avatar csharpbender avatar dandriano avatar findmanoj avatar gamblen avatar indomitable avatar joshuamayhome avatar maxwelldassistek avatar paulodiogo avatar rvrn22 avatar www avatar yazgoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nmg's Issues

Tutorial Link Broken

I like what you are doing here and clicked on the tutorial link but it returned a 404.

Where is the installer?

I want to download the binary to run the tool. CodePlex downloads don't work and i can't find one off github.

Wrong C# Type and not updating when manualy changed

So i downloaded latest version and tryed generation from PostgreSql and there is a problem, all types from database are mapped to C# type System.String except Boolean ... Its maped to System.Boolean. so its correct.

If i Manually change the value lets say for uuid from System.String to System.Guid its not changed in MapCode or DomainCode and also generated files are still all in String except Boolean value. Boolean is in Domain Code as bool and that is ok, everything else is string and wrong... It seams only MapCode is correct...

Edit: added my preferences image at the bottom

See screenshoots

So manually changing type does noting...

image
image
image

I think MapCode is Ok

image

My preferences
image

Can not connect to MariaDB Database

Hello,
I have a problem using this program: I can not connect to my MariaDB database. The database is reachable with other tools, only with this one i can't connect.
I don't know if i do something wrong or if it is a bug.

I have done the following setttings:
Database Type: MySQL
OLE DB Provider: MSDataShape
Server or file name: IpAddress:Port
Location:
Use a specific user name and password: My username and password

If I clilck on "Test Connection" it says "Test conncetion succeded" (But I can write anything into the fields. As long as I leave MSDataShape the Test Connection "works")

The connection string generated:
Provider=MSDataShape.1;Data Source=####.####.#.##:####;User ID=root;Password="#########"

But when I click on "Connect" it gives me the following error in the status bar at the bottom:
Keyword not supported. Parametername: provider

I would be really happy if you could help me.

Alex

PS: If have tried it with the latest compiled release and I have also built the on my one with the code GitHub.

No hay forma de que no seas un capo

Which translates to "there's no way you're not a boss".

Just that, wanted to say thank you for this project. Couldn't find an email or another way to PM you.

Thank you. Seriously.

Click Connect but no tables show

There're tables in my database, but I click connect the tables didn't show in the left-bottom region, what is the possible reason?

image

PascaleCase TableName become Tablename

e.g. ServiceRelatedRequest table gets generated as Servicerelatedrequest domain class regardless of configurations.

Seems the TextInfo.ToTitleCase method considers the text "ServiceRelatedRequest" as one word and simply converts that to "Servicerelatedrequest".

When receiving the text as "Service_Related_Request" it converts it correctly to ServiceRelatedRequest.

Workaround
I found that the AbstractTextFormatter had a line to add these underscores but was commented out (TextFormatter.cs Line 32). When I uncommented this line it fixed ClassNames but generated property names (which were originally PascalCase) with underscore. Explicity using the "PascalCase" configuration option worked around this.

MySql Foreign Key Mapping

Foreign Key in MySql DB is determined incorrectly. Using a MUL column from the "describe

" query cannot uniquely identify a column as a foreign key because MUL there means "other than primary single or unique single key". So the generator fails, for example, on any unique multiple indices...
I modified the code a bit for my own purposes (see Attachment). I don't know how correct it is.
In MysqlMetadataReader.cs GetTableDetails function was modified.
Reader.zip

Model Generations fail with foreign key constraint based on unique instead of primary key

If a foreign constraint is defined on a table using a unique key constraint instead of a primary key constraint the model generation is not done properly: consider this structure:

-- Referenced Table (Foreign)
CREATE TABLE [dbo].[MasterTable] (
[IdOfRec] INT NOT NULL,
[NaturalKey] NVARCHAR (20) NOT NULL,
PRIMARY KEY CLUSTERED ([IdOfRec] ASC),
CONSTRAINT [IX_UNIQUE] UNIQUE NONCLUSTERED ([NaturalKey] ASC)
);

GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_MasterTable]
ON [dbo].[MasterTable]([NaturalKey] ASC);

-- Referencing Table
CREATE TABLE [dbo].[ReferencingTable] (
[Id] INT NOT NULL,
[ReferentialNaturalKey] NVARCHAR (20) NOT NULL,
[Info] NVARCHAR (50) NOT NULL,
PRIMARY KEY CLUSTERED ([Id] ASC),
CONSTRAINT [FK_X] FOREIGN KEY ([ReferentialNaturalKey]) REFERENCES [dbo].[MasterTable] ([NaturalKey])
);

The Classes are:

public class MasterTable {
    public virtual int IdOfRec { get; set; }
 

    public virtual string Naturalkey { get; set; }
    public virtual ICollection<ReferencingTable> Childs { get; set; }
}


public class ReferencingTable {
    public virtual int Id { get; set; }
    public virtual string ReferentialNaturalKey { get; set; }
    public virtual MasterTable master  { get; set; }
    public virtual string Info { get; set; }
}

When doing model generation , the collection property Childs should have the property-ref attribute in hbm file. It does not so nhibernate cannot map correctly the relation.

Error while connecting with PostgreSQL Database

Error comes when you create a new connection for connecting with PostgreSQL database and below error comes up -
"only authentication clear text password and authentication md5 password supported for now. received 10"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.