Bonjour a tous
Je voudrai savoir s'il existe des tuto sur la mise en place de SPRING .NET et Entity Framework?
Sinon je vous expose mon problème:
J'ai une solution avec 4 projets:
Modele
Service
Business
Client (présentation)
dans ma couche Service j'ai :
classe ClientService et une interface IClientService
dans ma couche Business j'ai :
Classe ClientBusiness et une interface IClientBusiness
Je voudrai untiliser service dans ma business classique 
pour cela j'ai essayé avec spring
au niveau de ClientBusiness :
IClientService clientServ = AppCtx.Resolve<IClientService>();
et dans mon fichier de config :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| <?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="spring">
<section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core"/>
<section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />
</sectionGroup>
</configSections>
<spring>
<context>
<resource uri="config://spring/objects"/>
</context>
<objects xmlns="http://www.springframework.net">
<description>An example that demonstrates simple IoC features.</description>
<object id="IClientService" type="MonNamespace.ClientService, MonAssembly">
<property name="ClientService" ref="IClientService"/>
</object>
</objects>
</spring>
<connectionStrings>
<add name="TestEntities" connectionString="machaine de connexion" providerName="System.Data.EntityClient" />
</connectionStrings>
</configuration> |
j'ai cette erreur
ClientService' node cannot be resolved for the specified context
est ce qu'il manque quelque chose au niveau de mon fichier de config
merci a vous
Partager