spring.net

is spring.net being actively maintained/developed/documented?

て烟熏妆下的殇ゞ 提交于 2019-12-05 17:55:33
In the course of evaluating .net IoC frameworks, I gave spring.net a try first, seeing as how much I liked spring in java. However, I'm rapidly getting the feeling that it is a stale/stalled/dead project. The forums have almost no activity; the documentation, though verbose, is infuriating with its self-referencing, poor examples, and incomplete sections; spring.net questions don't seem to get much traction on stackoverflow; and googling for spring.net issues usually leads to pages documenting somewhat obscure scenarios. I'm close to making the jump to Ninja or Castle, but I can see that their

Property Inject an Array with Spring.Net

淺唱寂寞╮ 提交于 2019-12-05 12:35:44
I've been using the Spring.Net IoC container and can use it to inject properties that are of type IList and even IList<T> but I'm a bit stumped as to how to inject a property thats of type string[] . There doesn't seem to be an <array> element defined in the XSD's and using <list> <value> </list> doesn't work either. If anyone could post the xml I need to inject using an array for a property it'd be much appreciated As mentioned here in the documentation you can inject a string array as a comma delimited string (not sure what the syntax is for escaping actual commas in strings if necessary).

Injecting advice to a recursive method in Spring.Net?

萝らか妹 提交于 2019-12-04 16:23:06
I'm trying to use Spring.NET's support for AOP to do dependency injection/inversion of control/aspect-oriented programming (sorry for the slew of buzzwords - maybe I'll post a separate question asking someone to clarify the difference :) ). Specifically, I want to have intercept a recursive method call, so that every time that the method is invoked, the AOP advice/interceptor will be called. Spring.Net doesn't appear to intercept anything other than the very first method call. I think that Spring.Net is maintaining exactly 1 chain of interceptors per instance, and not call any more

Cannot inject dependencies to Azure WorkerRole object using Spring.NET

有些话、适合烂在心里 提交于 2019-12-04 13:40:33
I have moderate experience in developing web applications using spring.net 4.0 , nhibernate 3.0 for ASP.net based web applications. Recently I ran into a situation where I needed to use spring.net to inject my service dependencies which belong to the WorkerRole class. I created the app.config file as I normally did with the web.config files on for spring. Here it is for clarity. (I have excluded the root nodes) <configSections> <sectionGroup name="spring"> <section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web" requirePermission="false" /> <section name="objects"

Developing a web app with Mono (opensource .NET) any examples?

安稳与你 提交于 2019-12-04 11:42:39
问题 I am a Java, Scala, Python web app Linux guy. I want to play around with Mono (particularly F#) for web development. I am just looking for an example web application written in Mono perhaps in Github (any CLI language is fine). I have tried googling and cannot find a good starting point (or if its even possible). From what I gather I could sort of combine: Fast CGI (nginx, lighttpd) Mono Spring framework .NET (I can't even tell if it will work on Mono) Advanced apologies if there is a

Unable to open database (sqlite) in asp.net mvc3 app using spring.net

别说谁变了你拦得住时间么 提交于 2019-12-04 07:15:33
I am writing an asp.net mvc3 web application. I want to use a sqlite database. Unfortunatly I get an SqliteException saying "unable to open database". Spring-Version: 1.3.2 NHibernate-Version: 3.2 DbProvider/Connectionstring: <db:provider id="employeesDbProvider" provider="SQLite-1.0.72" connectionString="Data Source=.\Database\Employees.db3;Version=3;"> </db:provider> Stacktrace: bei System.Data.SQLite.SQLite3.Open(String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool) in c:\dev\sqlite\dotnet\System.Data.SQLite\SQLite3.cs:Zeile 239. bei System.Data.SQLite

Accessing ConfigurationManager.AppSettings value from Spring.NET xml configuration

时光总嘲笑我的痴心妄想 提交于 2019-12-04 06:53:39
I have a requirement that requires me to use Spring.net to get a connectionstring that is stored inside the app.config, and then inject the retrieved connectionstring to a instantiated object. How can I do this using Spring.net's xml configuration? For e.g., instead of my codes doing this: // Spring.net config: <object name="myService" type="com.acme.MyService, com.acme"> <constructor-arg type="System.String" value="myConnectionName"/> </object> // Web.config: <connectionStrings> <add name="myConnectionName" connectionString="DB_connectionstring"/> </connectionStrings> // Codes: public class

What's the state of Spring.Net?

本小妞迷上赌 提交于 2019-12-04 05:31:20
I'm currently evaluating the technologies we want to use for our next project. It will mainly be a backend for automatic data manipulation. It has some dependencies and we can only build it on top of .Net 3.5 at the moment. Spring.net seems like a good match for our requirements, since it brings a DI container, ADO.Net helpers, NHibernate, Unit testing helpers and other goodies in one maintained package. How established is Spring.Net in the community and what's the state? It seems like being actively maintained, but who uses it and can share some experience? I'm esp. interested in the DI

How to change configs in Spring.Net

谁都会走 提交于 2019-12-04 04:34:01
问题 An advantage of an IoC container is that you can swap in a mock service at the bottom of your object graph. However this seems much harder to do in Spring.Net than in other IoC Containers. Here's some code that does it in Unity and has Spring.Net code; namespace IocSpringDemo { using Microsoft.Practices.Unity; using NUnit.Framework; using Spring.Context; using Spring.Context.Support; public interface ISomeService { string DoSomething(); } public class ServiceImplementationA : ISomeService {

Is there any way to use SCOPE_IDENTITY if using a multiple insert statement?

元气小坏坏 提交于 2019-12-03 22:20:30
I will import many data rows from a csv file into a SQL Server database (through a web application). I need the auto generated id value back for the client. If I do this in a loop, the performance is very bad (but I can use SCOPE_IDENTITY() without any problems). A more performant solution would be a way like this: INSERT INTO [MyTable] VALUES ('1'), ('2'), ('3') SELECT SCOPE_IDENTITY() Is there any way to get all generated IDs and not only the last generated id? Thanks for your help! Best regards, Thorsten No, SCOPE_IDENTITY() only gives you the one, latest inserted IDENTITY value. But you