Comments (3)
Michael:
IBatisNet.Common use specific 3.0 and 3.5 framework classes.
In the case of 2.0 it fails because of Linq (3.5) and System.ServiceModel
(3.0). In 3.0 the problem is Linq.
The affected classes are:
2.0:
WcfSessionItemsInstanceExtension: System.ServiceModel
HybridWebThreadSessionStore: System.ServiceModel
InstanceItems: Linq
WcfSessionStore: requires WcfSessionItemsInstanceExtension
In 3.0:
InstanceItems: Linq
WcfSessionItemsInstanceExtension: requires InstanceItems
WcfSessionStore: requires WcfSessionItemsInstanceExtension
HybridWebThreadSessionStore: requires WcfSessionItemsInstanceExtension
The solution I suspect we can adopt is:
For 2.0:
- Exclude SessionStore classes: it's impossible to use a 3.0 implementation.
All the threads for WCF has to be droped.
WcfSessionItemsInstanceExtension
HybridWebThreadSessionStore
WcfSessionStore
In the case of Linq we can use LinqBridge. The effect is in the
InstanceItems.cs class. Another solution is to change the InstanceItems.CleanUp
method (it's the only one that uses Linq)
For 3.0:
In the case of Linq we can use LinqBridge. The effect is in the
InstanceItems.cs class. Another solution is to change the InstanceItems.CleanUp
method (it's the only one that uses Linq)
----------------------
Please, I need your confirmation on the way I should take in order to build for
2.0, 3.0, 3.5, 4.
Greetings and sorry for my poor english!
Original comment by [email protected]
on 6 Jan 2011 at 4:09
from mybatisnet.
Juan,
We'll need to do in and add a compiler directive to exclude those features for
a build less than .net 3.0 and have the .nant files supply that directive
Original comment by [email protected]
on 10 Jan 2011 at 3:46
from mybatisnet.
Michael:
I Already have done this. Today I commited the build files.
In the IBatisNet.DataMapper.build file you can see the validation for 2.0:
if target = net-2.0:
Exclude: { WcfSessionStore.cs, InstanceItems.cs,
WcfSessionItemsInstanceExtension.cs, HybridWebThreadSessionStore.cs }
Else:
Exclude: { InstanceItems-net20.cs }
InstanceItems-net20.cs is a copy & paste of InstanceItems.cs. The only
difference is that it does not have the Hook method (event triggered in
WcfSessionItemsInstanceExtension.GetCollectionFrom).
Now you can build nant for .Net-2.0 and .Net-3.5. I have to install the 3.0
version to test on it, besides the 4.0.
Todo: add the ndoc target. Today or tomorrow i'll wait to have it.
Greetings and sorry for my poor english!
---- Nant options: ----
nant clean
nant clean-zip
nant debug
nant release
nant package
example: nant release -t:net-2.0
The output files are in the "Nant" directory.
Original comment by [email protected]
on 10 Jan 2011 at 5:39
from mybatisnet.
Related Issues (20)
- Patch for /trunk/src/MyBatis.DataMapper/Configuration/Interpreters/Config/Xml/Processor/Handlers/ProcessStatementElement.cs
- Why not use BindingFlags.IgnoreCase
- Huge results - want to iterate myself. HOT 1
- Concurrency and SQL Injection HOT 1
- Loading dynamic assemblies fails with 'System.NotSupportedException' HOT 1
- mybatisnet invoke mysql procedure error
- How to get Table Columns using ibatis HOT 2
- There is no Get member named 'Wrapper' in class 'List`1' HOT 2
- Dynamic insert columns and values using mybatis
- Include tag with sql statement
- How to send string inside Sql tags HOT 1
- for each statement not working
- 很久都没发布版本了,希望能加快发布版本的步伐
- generate tag error
- sqlite :String was not recognized as a valid DateTime.
- how can i create temp table in ms-sql
- the newest source code (3.0) cannot build HOT 2
- AllowPartiallyTrustedCallers
- Unable to load embedded resource from assembly "MyBatis.SqlMap.config, MyBatis". HOT 2
- there no ibatis&mybatis for spring.net driver
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mybatisnet.