Which IoC container should I use?
G'Day, What IoC containers do you all recommend? There are so many around! Cheers, Bec
Re: Which IoC container should I use?
I was trying to answer this for myself recently and found this: http://stackoverflow.com/questions/411660/enterprise-library-unity-vs-other-ioc-containers http://stackoverflow.com/questions/411660/enterprise-library-unity-vs-other-ioc-containersIt's a little dated though. Enterprise Library has had a major release since the above question was answered. I'm not sure about the others. For me, since I'm looking at using some of the other EntLib 'Application Blocks' (and later maybe Prism) for my project Unity seems like a good fit. I've read up on it and it seems pretty full featured. I haven't actually implemented anything with it yet since I've been working around some issues with the Logging Application Block (but that's another story). While researching this I don't think I read any bad stories about any of the IoC implementations - they all do the basic job and that's what provides most of the benefit. On Mon, Feb 21, 2011 at 10:23 AM, Bec Carter bec.usern...@gmail.com wrote: G'Day, What IoC containers do you all recommend? There are so many around! Cheers, Bec
RE: Which IoC container should I use?
Castle Windsor -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Bec Carter Sent: Monday, 21 February 2011 10:23 AM To: ozDotNet Subject: Which IoC container should I use? G'Day, What IoC containers do you all recommend? There are so many around! Cheers, Bec
Re: Which IoC container should I use?
Ahh, an idealist:) Combine tight deadlines, tire fire of existing code and lastly the realities of day to day cubicles in enterprise.. AutoFac is the vaccination one needs to fight off further downward spiral of bad code. --- Regards, Scott Barnes http://www.riagenic.com On Mon, Feb 21, 2011 at 11:12 AM, Noon Silk noonsli...@gmail.com wrote: On Mon, Feb 21, 2011 at 12:08 PM, Scott Barnes scott.bar...@gmail.com wrote: Life without AutoFac isn't life worth living.. I call it my little secret prayer... oh no, i've backed myself into a OO corner.. i really need FooClass but my composition is a mess Well there's your problem ... Solution: Become better at programming :-) dear .Net gods, i'm praying for FooClass...BING!...there it is.. :) Its like you're cheating at code :D --- Regards, Scott Barnes http://www.riagenic.com -- Noon Silk http://dnoondt.wordpress.com/ (Noon Silk) | http://www.mirios.com.au:8081 Fancy a quantum lunch? http://www.mirios.com.au:8081/index.php?title=Quantum_Lunch Every morning when I wake up, I experience an exquisite joy — the joy of being this signature.
Re: Which IoC container should I use?
I 3 Autofac. On 21/02/2011, at 10:23 AM, Bec Carter bec.usern...@gmail.com wrote: G'Day, What IoC containers do you all recommend? There are so many around! Cheers, Bec
Re: Which IoC container should I use?
Thanks for all responses- I will check them out. On Mon, Feb 21, 2011 at 1:24 PM, Michael Minutillo michael.minuti...@gmail.com wrote: I guess it's still early in the day but I'm surprised not to see any StructureMap/Windsor peeps throwing their hats in the ring. Back to the original point, most of the containers will provide many of the same capabilities but in slightly different ways. At the end of the day there are only so many ways you can build a dictionary of object factories (which is sort of all an IoC container is). Most of the time the differences are in how you register components with the container and some of these features can get quite advanced so by the time you need those, you've already made your choice. If you have the time, the best thing for you to do is to build a very small app representative of the way you'll be doing things and then try each of the containers out to see how they feel. On Mon, Feb 21, 2011 at 10:13 AM, Joseph Cooney joseph.coo...@gmail.com wrote: I 3 Autofac. On 21/02/2011, at 10:23 AM, Bec Carter bec.usern...@gmail.com wrote: G'Day, What IoC containers do you all recommend? There are so many around! Cheers, Bec
Re: Which IoC container should I use?
Aaah both a realist and a pragmatist :) Regards On 21 February 2011 13:07, Scott Barnes scott.bar...@gmail.com wrote: Ahh, an idealist:) Combine tight deadlines, tire fire of existing code and lastly the realities of day to day cubicles in enterprise.. AutoFac is the vaccination one needs to fight off further downward spiral of bad code. --- Regards, Scott Barnes http://www.riagenic.com On Mon, Feb 21, 2011 at 11:12 AM, Noon Silk noonsli...@gmail.com wrote: On Mon, Feb 21, 2011 at 12:08 PM, Scott Barnes scott.bar...@gmail.com wrote: Life without AutoFac isn't life worth living.. I call it my little secret prayer... oh no, i've backed myself into a OO corner.. i really need FooClass but my composition is a mess Well there's your problem ... Solution: Become better at programming :-) dear .Net gods, i'm praying for FooClass...BING!...there it is.. :) Its like you're cheating at code :D --- Regards, Scott Barnes http://www.riagenic.com -- Noon Silk http://dnoondt.wordpress.com/ (Noon Silk) | http://www.mirios.com.au:8081 Fancy a quantum lunch? http://www.mirios.com.au:8081/index.php?title=Quantum_Lunch Every morning when I wake up, I experience an exquisite joy — the joy of being this signature.
Re: Which IoC container should I use?
On 21 February 2011 13:50, Nathan Schultz milish...@gmail.com wrote: I've used both StructureMap and Unity in anger. Luck skywalker much? :) Regards Arjang
Re: Excel in .NET (C# or VB)
My preference is not to use Excel at all, especially if you are trying to perform this on a server. Try something like http://www.aspose.com/categories/.net-components/aspose.cells-for-.net/default.aspx http://www.aspose.com/categories/.net-components/aspose.cells-for-.net/default.aspx Craig. On Mon, Feb 21, 2011 at 3:10 PM, etmilis etmi...@iinet.net.au wrote: Hi Everyone, In the current DNA with .NET, is it much easier now to deal with EXCEL? Is COM still in the game? What I am after is reading from and writing to an EXCEL file(s). Also will it be possible to do it without installing EXCEL at all, for example just referencing some of the EXCEL assemblies??? Thanks and Regards, Etmilis
Re: Excel in .NET (C# or VB)
Hi Etmilis, as Craig said ( also from personal experience ), do not try reading and writing excel files on the server, there is no end to problems that need to be solved. What is the original problem that you think it requires reading and writing to Excel Files? Regards Arjang On 21 February 2011 15:10, etmilis etmi...@iinet.net.au wrote: Hi Everyone, In the current DNA with .NET, is it much easier now to deal with EXCEL? Is COM still in the game? What I am after is reading from and writing to an EXCEL file(s). Also will it be possible to do it without installing EXCEL at all, for example just referencing some of the EXCEL assemblies??? Thanks and Regards, Etmilis
RE: Excel in .NET (C# or VB)
Thanks Craig and Arjang, Concern noted. We are asked to automate/integrate files (i.e. invoice, inventory, etc.) received from customer (in Excel via email) with internal system and need to update some databases/tables too. We will also need to send back the updated Excel file (original file + added/updated columns) to the customers. It looks like there are 2 ways to do it, using the Excel object model or the OLEDB, though I am leaning more to the object model. So, is it a good design if we create a service or a .net assembly with scheduled job to it? The frequency is pretty low, a few times in a day during business hours only. Cheers, Etmilis -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Arjang Assadi Sent: Monday, 21 February 2011 3:37 PM To: ozDotNet Subject: Re: Excel in .NET (C# or VB) Hi Etmilis, as Craig said ( also from personal experience ), do not try reading and writing excel files on the server, there is no end to problems that need to be solved. What is the original problem that you think it requires reading and writing to Excel Files? Regards Arjang On 21 February 2011 15:10, etmilis etmi...@iinet.net.au wrote: Hi Everyone, In the current DNA with .NET, is it much easier now to deal with EXCEL? Is COM still in the game? What I am after is reading from and writing to an EXCEL file(s). Also will it be possible to do it without installing EXCEL at all, for example just referencing some of the EXCEL assemblies??? Thanks and Regards, Etmilis
RE: Excel in .NET (C# or VB)
Using xlsgen to manage situation very similar to yours. Has worked very well on a variety of projects. Website is at http://xlsgen.arstdesign.com/ Andrew From: etmilis etmi...@iinet.net.au Sent: Monday, 21 February 2011 3:02 PM To: ozDotNet ozdotnet@ozdotnet.com Subject: RE: Excel in .NET (C# or VB) Thanks Craig and Arjang, Concern noted. We are asked to automate/integrate files (i.e. invoice, inventory, etc.) received from customer (in Excel via email) with internal system and need to update some databases/tables too. We will also need to send back the updated Excel file (original file + added/updated columns) to the customers. It looks like there are 2 ways to do it, using the Excel object model or the OLEDB, though I am leaning more to the object model. So, is it a good design if we create a service or a .net assembly with scheduled job to it? The frequency is pretty low, a few times in a day during business hours only. Cheers, Etmilis -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Arjang Assadi Sent: Monday, 21 February 2011 3:37 PM To: ozDotNet Subject: Re: Excel in .NET (C# or VB) Hi Etmilis, as Craig said ( also from personal experience ), do not try reading and writing excel files on the server, there is no end to problems that need to be solved. What is the original problem that you think it requires reading and writing to Excel Files? Regards Arjang On 21 February 2011 15:10, etmilis etmi...@iinet.net.au wrote: Hi Everyone, In the current DNA with .NET, is it much easier now to deal with EXCEL? Is COM still in the game? What I am after is reading from and writing to an EXCEL file(s). Also will it be possible to do it without installing EXCEL at all, for example just referencing some of the EXCEL assemblies??? Thanks and Regards, Etmilis
RE: Excel in .NET (C# or VB)
If you are looking for alternative to xlsgen you could look at Aspose.Cells for .NET http://www.aspose.com/categories/.net-components/aspose.cells-for-.net/key-f eatures.aspx Have not used it as I have never had this requirement. I don't know which is better. I usually like to have a number of options to try. Regards Peter. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of etmilis Sent: Monday, 21 February 2011 12:11 PM To: 'ozDotNet' Subject: Excel in .NET (C# or VB) Importance: High Hi Everyone, In the current DNA with .NET, is it much easier now to deal with EXCEL? Is COM still in the game? What I am after is reading from and writing to an EXCEL file(s). Also will it be possible to do it without installing EXCEL at all, for example just referencing some of the EXCEL assemblies??? Thanks and Regards, Etmilis
Re: Excel in .NET (C# or VB)
Hi, Oledb will give you loads of problems, the data types in the spreadsheet are defined by the best match of the first 5 rows or so. Really not good. If you were just reading the file then nexcel is my preferred way and it works on asp.net with no hassle. But as you are updating there isn't a simple solution at all. Davy When all you have is a hammer, every problem looks like a nail. I feel much the same way about xml -Original Message- From: etmilis etmi...@iinet.net.au Sender: ozdotnet-boun...@ozdotnet.com Date: Mon, 21 Feb 2011 16:02:27 To: 'ozDotNet'ozdotnet@ozdotnet.com Reply-To: ozDotNet ozdotnet@ozdotnet.com Subject: RE: Excel in .NET (C# or VB) Thanks Craig and Arjang, Concern noted. We are asked to automate/integrate files (i.e. invoice, inventory, etc.) received from customer (in Excel via email) with internal system and need to update some databases/tables too. We will also need to send back the updated Excel file (original file + added/updated columns) to the customers. It looks like there are 2 ways to do it, using the Excel object model or the OLEDB, though I am leaning more to the object model. So, is it a good design if we create a service or a .net assembly with scheduled job to it? The frequency is pretty low, a few times in a day during business hours only. Cheers, Etmilis -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Arjang Assadi Sent: Monday, 21 February 2011 3:37 PM To: ozDotNet Subject: Re: Excel in .NET (C# or VB) Hi Etmilis, as Craig said ( also from personal experience ), do not try reading and writing excel files on the server, there is no end to problems that need to be solved. What is the original problem that you think it requires reading and writing to Excel Files? Regards Arjang On 21 February 2011 15:10, etmilis etmi...@iinet.net.au wrote: Hi Everyone, In the current DNA with .NET, is it much easier now to deal with EXCEL? Is COM still in the game? What I am after is reading from and writing to an EXCEL file(s). Also will it be possible to do it without installing EXCEL at all, for example just referencing some of the EXCEL assemblies??? Thanks and Regards, Etmilis