Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Due to my next project (much SOA stuff) I need a component based configuration and stored in a database to enable a central administration. app.config/web.config does not support any of those requirements (I know some hacks with app-domains, though). So does anybody of you know a configuration framework? It does not necessary have to be free of cost.
I know how to google ;-) but I'd appreciate some experiences about a framework you already used.
Thanks in advance!
Flo
I also work on a big SOA project. We are using Nini and it is quite good.
Here are some of the features :
Multiple configuration types INI,
XML, Registry, and command line
Strong variable types String,
int, float, etc. Eliminates casts
Set and save Add, remove, edit,
and save configs
Lightweight and fast Small
footprint, built for speed
Merging Merge several configs
into one
100% free Free and open source
code
Value aliases Add aliases for
unclear variables
Key value replacement Replaces
values with other key values
Cross platform Run on .NET/Mono
Linux/Mac/Windows
INI parser Contains a 100%
managed INI parser
Fully documented See the Nini
manual and API reference
Unlimited files/sources Loads an
unlimited number of files
Compact Framework Supports the
.NET Compact Framework
Command line application Has a
command-line configuration editor
Mature and stable Over 140 unit
tests
Have a look at it.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Are there any tools or methods for combining an entire c# class library (project) into a single class file.
My primary reason for doing this is because I would like to use some c# open source libraries but each library I add results in another project and another dll to manage and distribute.
If there was an automated way to merge / combine the files then I would still be able to compare the source and look for changes.
In addition, I suspect that if I modified all classes to be "internal" while combining then the compiler could discard everything I don't actually use.
The intention is to then use that class file directly inside my larger project.
My Project
Open Source Pieces
BarcodeLibrary.cs
CryptoLibrary.cs
etc ...
This was supposed to be a simple HowTo question but since I need to provide a philosophical justification...
The comments about using nuget are valid and applicable but I have had multiple experiences with projects built by pulling in a number of "internet" hosted libraries. Those experiences have NOT been joyous to say the least. I now prefer to take a much more hands on and selective approach when using external libraries and code.
Regarding Source Control. A single well structured file for a single project that you are never going to edit (except for updates) would help to reduce the clutter in a project instead of creating extra problems.
Update: I built what I needed and am testing the results, hope to return with a tool and example.
I would seriously recommend against doing such a thing. It makes code navigation a nightmare. Also your version control system is probably not going to like this. If you are worried about forgetting dependencies between your projects, I suggest using build tooling and dependency managers like NuGet to get these under control.
you can use Costura.Fody to bundle all your assemblies into one. I think this is the problem you are trying to solve.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I want the ability to generate POCO entities outside of Visual Studio. Is this possible?
I haven't found a standalone tool (outside of Visual Studio), but I've used the Visual Studio extension EntityFramework Reverse POCO Generator on a previous project when switching from Database First / Model First to Code First.
Why does it need to be a standalone tool? You could remove the extension after the conversion if it's a permanent switch.
EntityDeveloper by DevArt. Nice with UI and strong on updating the model, too. Sadly not free, but then not exactly expensive either.
I realize this is an old question, but it's an issue I'm facing myself currently.
I've managed to have some luck by using EdmGen.exe which is included with in .net4 framework installations, so it's most probably present on client machines.
EdmGen will generate Model and Mapping files and, in addition, you can Generate Object-Layer code with it.
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\edmgen.exe" /mode:fullgeneration /c:"Data Source=<DATASOURCE>; Initial Catalog=<CATALOG>; Integrated Security=SSPI" /project:<PROJECT> /entitycontainer:<ENTITY CONTAINER> /namespace:<NAMESPACE> /language:CSharp
After this you can go ahead a generate your Object-Layer code:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\edmgen.exe" /mode:EntityClassGeneration /incsdl:.\<PROJECT>.csdl /outobjectlayer:.\<PROJECT>.Objects.cs /language:CSharp
Obviously, you'll want to replace the <*> with your particular needs.
You can also replace \Framework\ with \Framework64\ in the path if you're on a 64-bit machine.
You can read up on all of the features here:
EDM Generator Docs
I've managed to get it working, but the performance has been deplorable. I'm working with a somewhat complex database with about 80 tables and 30-40 views and the fullgeneration took over an hour. I've seen other similar cases online, but haven't found a solution.
EDIT: I just ran into this excellent tutorial/article which helps automate the whole process. Hope this helps!
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
What is the best way to store data & fastest way to access it, that is free and doesn't require additional stuff to install ?
Use sqlite.
XML. Look here. Keep in mind that by using XML, you have a machine-structured human-readable file.
Update
Since this apparently looks very new to OP, here are some links:
About XML:
XML Very Basics
About Accessing XML from C#.NET
Microsoft Linq TO XML Doc/Howto
A nice Linq to XML Tutorial
Well if the language is C, you could use structs and fread() & fwrite() to save the data into single "database" file. It is not the most compatible way but it certainly is fast. And it doesn't require any additional stuff to be installed.
StreamReader to read files
http://msdn.microsoft.com/en-us/library/system.io.streamreader.aspx
and
StreamWriter to write files
http://msdn.microsoft.com/en-us/library/system.io.streamwriter.aspx
They are both classes included in the .NET framework.
I would suggest SQL Server Compact Edition - it's free, file based, requires no extra installation and this also gives you a nice upgrade path since it also supports Entity Framework.
If you need a relational database, use the System.Data.Sqlite ADO.Net wrapper around the Sqlite database. Drop the DLL into your project and you get a free, fast, single-file SQL database.
If all you need is a key-value store, then use Persistent Dictionary in the ESENT managed interface.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm hoping to find an open source .net common library, but I'm having a hard time finding one.
What I'm looking for a is something that contains : Logging, Caching, String Manipulation, Config Reading, ext?!?.
Do you know if anything like this exists or is this more likely something that I will need to create myself?
Use Microsoft Enterprise Application Blocks
Get it from here
http://msdn.microsoft.com/en-us/library/cc467894.aspx
Source code here
http://www.codeplex.com/entlib
Microsoft Enterprise Library - Built by Microsoft, source code is available
Spring.NET - Open source development framework
Kev:
Just a bit more elaboration, I've spent quite a bit of time trying to reuse code from other frameworks:
Here is a breakdown based on feature sets:
Infrastructures frameworks( config, logging, caching, etc)
SpringFramework.NET - ( Port of the popular Java SpringFramework )
Microsoft Enterprise Library - Microsoft "answer" to SpringFramework.
Frameworks providing ActiveRecord or Ioc(Inversion Of Control) or Code generation:
Castle Project
http://www.castleproject.org/index.html
SubSonic
http://subsonicproject.com/
NetTiers
http://nettiers.com
Finally, you may find many other smaller libraries, frameworks on CodePlex.com
Some that are of note:
CommonLibrary.NET
http://commonlibrarynet.codeplex.com/
DotNet Commons
http://dotnetcommons.codeplex.com/
All that is built into the framework, so all you really need is mono.
Check Nido Framework too
Nido is a code framework, a common project, an architectural pattern, written on Microsoft .NET/C# 4.5, to help software engineers to develop their systems faster.
Other than automatically building/ architecting the back end code for you.. it also help you in
Handling of log-in exceptions, display user friendly messages, tracking errors.
Tracking changes done to important data items which is also called audit trails
Validating records and encrypting sensitive data to protect their privacy
Controlling complexity by mean of handling complex problems in one standard way
Set standards pattern for coding
Logging - have a look at Log4net
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am trying to write a Windows Form and ASP.NET C# front-end and MSAccess backend for a pretty small database concept I have.
I have written this application once before in just MSAccess but I now need the app and database to be in different places. I have now figured out (thanks to a StackOverflow user) that ADO will be a bad choice because it has to have a connection open all of the time.
I bought Microsoft ADO.Net 2.0 Step-by-Step and I have read through some of it and understand (I think) the basic concepts at play in ADO.NET. (Datasets and the like)
Where I get confused is the actual implementation. What I want to know is do any of you know of a C# project that has a database backend which is open source that I can go look at the code and see how they did it. I find I learn better that way. The book has a CD with code examples that I may turn to, but I would rather see real code in a real app.
I haven't used this but it looks like it might be a good fit:
http://www.codeproject.com/KB/database/DBaseFactGenerics.aspx
Take a look at the MySQL .net connector. It is the nuts and bolts of how the ADO.net classes talk to the DB engine. ADO.net as a whole does not keep connections open. Certain higher level classes do. Technically the lower level objects such as the connection and command objects are part of ADO.net, but you have a high degree of control over them.
Check CodePlex, they have a ton of .NET projects. I can't think of specific ones that fit your requirements, but you should be able to find something.
www.codeplex.com
I found this post http://www.codeproject.com/KB/database/DatabaseAcessWithAdoNet1.aspx by searching for ADO.NET on the codeproject so I am going to give Chris Porter the answer points. Thanks everyone for the help.