I am working a project where I need to generate a series of classes to represent/access data in the database. Third party projects such as hibernate or subsonic are not an option. I am new in this subject domain, so I am looking for information on the topic. The project is in .net and I am using MyGeneration. I am primarily looking for information.
What is your single best resource for topics on code generation of data access?
Please post only one link at a time and look for your resource before posting. If you find your resource, please vote up instead of posting it. .
( I am not interesting in rep, just information)
Are you using .NET? Try MyGeneration
CodeSmith
ORAPig generates Python interfaces for Oracle packages. A Postgresql module is being worked on.
http://code.google.com/p/orapig
Related
I am looking for tutorial or sample for Dapper using token based authentication in web api 2. I appreciate if anyone can suggest where to start, I have found tutorial in http://www.c-sharpcorner.com/UploadFile/ff2f08/token-based-authentication-using-Asp-Net-web-api-owin-and-i/ but the sample is using EF and I havent tried using EF, but dapper also I am using MySQL for my database. Thanks in advance and good day.
Dapper is a very different tool to EF (which is the DbContext described in your step 3 / step 4). It simply will not be compatible with those steps, and isn't designed to be used with those steps.
But here's the thing: dapper is just a tool. EF is just a tool. It is ok to use more than one tool. If it suits your purposes, then use EF to do one set of jobs (for example, to help you use a particular library that is designed with that in mind), and use another tool (such as dapper) elsewhere in the same project. That's OK. No one will mind.
If you really really don't want to use EF at all, then you'll need to find out everything that the library needs to support what you are doing, and implement it manually. If the library is designed around IQueryable<T> etc, then this may be very difficult.
I need to generate custom reports using Sonar sql server database data. The structure of the database is quite confusing me. How can I get below details of my project?
LoC(lines of code)
Rule Compliance %
Comment %
Public Documented API %
Security Violations
Violations (excluding Info)
Duplicated Line %
Once I get these details how can I stucture my report because root data is having many childs.
I think you probably really want to use the web services to extract data, rather than reading from the database. See http://docs.codehaus.org/display/SONAR/Web+Services for documentation.
I don't recommend to directly request database because it's not considered as an API. It deeply evolves over time.
There are currently two reporting plugins that generate PDF :
http://docs.codehaus.org/display/SONAR/Sonar+PDF+Plugin (open-source + commercial edition)
http://www.sonarsource.com/products/plugins/reporting/report/ (commercial)
If you want to generate your own report, then you should implement a plugin or request web services from a dedicated application.
I learned to love how LINQ enables set operations on collections. I'm not saying that I plan to shun traditional RDMBS, because I do need it for reporting. There are NoSQL alternatives out there, but they seem to all need to fire up a separate service.
What I looking for is something local where a DLL can create a database and perform CRUD on it. As mentioned, I'm not going to report out of this, just internal data store. The main application that will be using it is in C#.
I'm hoping that someone can give me a lead. If not, if there is anyone willing, we can start a open-source project for it. I'm not interested in commercial products.
Thanks,
You can run RavenDB in embedded mode inside your .NET application - no need for external services or anything.
And RavenDB supports Linq....
I'm writing a C# Applications Solution v11.2 using eXpressApp Framework from DevExpress and the first thing I would like to do is make the 2 apps (web & win) connect to an Oracle Database without using the Oracle Client.
In my other projects I have used DevArt's dotConnect tool, which is great by the way (works without needing any Oracle Client installed).
I wonder if someone has tried this, 'cuz I just can't get it work. From what I read from the forums, I think that eXpress Framework doesn't recognize dotConnect's OracleConnection, or that I have to write my own XPO provider.. ?!
Please help!
Thanks!
One of the approaches to accomplishing this task is to create a custom XPO connection provider. This class will be a descendant of one of the standard connection providers listed in the Database Systems Supported by XPO help topic. I believe the following KB article should helps.
Supposedly ReportsAnywhere will talk with MongoDB to generate reports. I am not sure if it is using the JDBC driver or a different method. Hoping someone can help me on how to set up reports anywhere database driver/connection to mongodb?
So the ReportsAnywhere author makes mention of building such a product here. Based on his description, this is no using a JDBC driver but pulling data via the native driver.
It looks like he did a presentation at MongoBerlin in October 2010, unfortunately, I cannot any videos / slides from the presentation. The website is also completely devoid of examples.
Given that ReportsAnywhere is a paid-for product and this is an advertised feature, your best bet may be to go directly to ReportsAnywhere. Maybe you'll get lucky on SO, but I would definitely contact their team directly. Looks like Hans, the creator, is also available on twitter.