Questions tagged [spring.net]

Spring.NET is an open source application framework for developing .NET enterprise applications.

Spring.NET is an open source application framework for developing .NET enterprise applications, inspired by the popular Spring for Java. It provides infrastructural support to make best practices easy practices. Spring.NET consists of several modules, most notably:

For information on additional modules and other background information, see the overview page on the Spring.NET website. Technical documentation is also available on this site.

Related tags

632 questions
30
votes
1 answer

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

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…
Thorsten Kraus
  • 315
  • 1
  • 3
  • 3
16
votes
1 answer

NHibernate - Cascade Merge to child entities fails for detached parent entity

Current Approach In an ASP.NET web forms app (using Spring.NET and NHibernate) we have an aggregate root (Person) whose details are captured across a number of screens/pages. The Person entity exists prior to entering into this workflow, and all…
RuairiQ
  • 431
  • 1
  • 5
  • 9
14
votes
2 answers

Is Spring.NET project dead?

We are considering using Sprint.NET as AOP framework along with other solutions. Spring.NET is a known framework, at least by name like in my case. I try to find the informations about latest release and support but I can't find anything after 2012…
Emmanuel Istace
  • 1,209
  • 2
  • 14
  • 32
12
votes
3 answers

IoC, AOP and more

What is an IoC container? What is an IoC/DI framework? Why do we need a framework for IoC/DI? Is there any relationship between IoC/DI and AOP? What is Spring.net/ninject with respect to IoC and AOP?
user366312
  • 16,949
  • 65
  • 235
  • 452
12
votes
2 answers

Reflection says that interface method are virtual in the implemented type, when they aren't?

I have the following code in an unit test public bool TestMethodsOf() { var impl = typeof(T); var valid = true; foreach (var iface in impl.GetInterfaces().Where(i => typeof(I).IsAssignableFrom(i))) { var members =…
Sebastian Piu
  • 7,838
  • 1
  • 32
  • 50
12
votes
1 answer

Dependency injection / IoC in Workflow Foundation 4

Is it possible to use DI in your workflow activities? and if yes, how? For example if you have an activity like public sealed class MyActivity : CodeActivity { public MyClass Dependency { get; set; } protected override void…
12
votes
3 answers

Castle Windsor or Spring.NET - advantages and disadvantages

Yesterday I was reading some articles in this site while I stumbled on an article about this two new IoC tools. Which one should I learn first? Is there some specification about which one should be used when?
MD Sayem Ahmed
  • 28,628
  • 27
  • 111
  • 178
10
votes
2 answers

Tell Resharper to use spring.net DI configuration for the inspection of unused classes?

Resharper warns me when parts of my code are never used; this is very helpful. However, I have quite a few classes that are not referenced by other code directly. These classes are used in the dependency injection (DI) configuration only. I use…
Marijn
  • 10,367
  • 5
  • 59
  • 80
9
votes
5 answers

What is the recommended Dependency Injection framework for ASP.NET MVC

I've been looking for good dependency injection for ASP.NET MVC. recently I am Java EE programmer, I always used Spring for DI Framework. But after searching some tutorial from internet. Spring.NET requires explicit XML configuration for each…
Adi Sembiring
  • 5,798
  • 12
  • 58
  • 70
9
votes
1 answer

Configuring Acknowledgements with Spring.NET

Is there a way to configure Acknowledgements with Spring.NET? In code it looks like this: var msgQ = new MessageQueue(OrdersQueueName) { DefaultPropertiesToSend = { AcknowledgeType =…
Lieven Cardoen
  • 25,140
  • 52
  • 153
  • 244
9
votes
3 answers

Spring.Net Framework sunset?

I've been considering going back to the springframework for .net DI, but I just noticed that there hasn't been any recent development or announcements on their site. Can anyone confirm that they are still actively developing the .net version of the…
BlackICE
  • 8,816
  • 3
  • 53
  • 91
8
votes
4 answers

Why my system is trying to load a type from an invalid version of the assembly?

I'm working on an old system that is using NHibernate 3 and spring for DI, I have to do some refactor on this solution. some of the projects of the solution was using NHibernate 1.2, I changed them to NHibernate 3. Now the only version of the…
BigBoss
  • 6,904
  • 2
  • 23
  • 38
8
votes
1 answer

How to wire events with methods using Autofac?

Is it possible to wire events to methods with Autofac instead of whole object via interfaces/classes (through constructor and property injection). I want to bind at function level instead of type level. Programmatically I expect the following job to…
Beachwalker
  • 7,685
  • 6
  • 52
  • 94
7
votes
2 answers

redefine spring.net object in multiple configuration files

I am setting up my xml configuration files for my asp.net web application using spring.net IOC dependency injection. I referenced each of my config files in the web.config. A sample of setting in spring.net configuration file (settings.xml)…
amateur
  • 43,371
  • 65
  • 192
  • 320
7
votes
4 answers

ASP.NET MVC, Spring.NET, NHibernate initial setup/example/tutorial

Have you been doing some ASP.NET MVC developement involving Spring.NET and NHibernate both? I would like to see an informative example of such setup, so I could build my own project off that. I tried googling, found some pretty things like S#arp…
Bubba88
  • 1,910
  • 20
  • 44
1
2 3
42 43