mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1bce5f4a2a | ||
|
|
b741b03a5a | ||
|
|
c79b907d10 | ||
|
|
65c55cae96 | ||
|
|
93512315cf | ||
|
|
a3a8c702a3 | ||
|
|
c1c4fa1ec2 | ||
|
|
6d58b9ec58 | ||
|
|
819f5a345f | ||
|
|
c40860f8f6 | ||
|
|
f8369d1fa5 | ||
|
|
91ce9a2e72 | ||
|
|
e62e81ba8c | ||
|
|
b8c9c45df8 | ||
|
|
51911d4ec6 | ||
|
|
dadd38c671 | ||
|
|
198a9c8cb5 | ||
|
|
da054d8c15 | ||
|
|
eb38dedfbc | ||
|
|
17afb2ed9b | ||
|
|
c4e80b0dd1 | ||
|
|
3d0215ea34 | ||
|
|
1487ef693e | ||
|
|
0262f45d79 | ||
|
|
77ed335185 | ||
|
|
be7cc439dd | ||
|
|
28f2d4e814 | ||
|
|
9f1f45ea46 | ||
|
|
c2c1f1eb56 | ||
|
|
c116a126b9 | ||
|
|
06095010a1 | ||
|
|
a5d23fa8b3 | ||
|
|
2d7a230c66 | ||
|
|
346f3b40cf | ||
|
|
952aca77a6 | ||
|
|
fa79dd6751 | ||
|
|
096e9b19f9 | ||
|
|
381b6f1ebb | ||
|
|
b2a92a5345 | ||
|
|
6b3d5687da | ||
|
|
17531924e3 | ||
|
|
85042b357c | ||
|
|
6b1339c66f | ||
|
|
a408c4a9d1 | ||
|
|
cdc917879e | ||
|
|
5177a232f1 | ||
|
|
268e4491ad | ||
|
|
0745874cc4 | ||
|
|
6c35614385 | ||
|
|
3a1f655546 | ||
|
|
72e4a89785 | ||
|
|
e3a727ab22 | ||
|
|
4d9bb76591 | ||
|
|
810b4b2318 | ||
|
|
bd742a07d0 | ||
|
|
23cb51f860 | ||
|
|
a0b778a04f | ||
|
|
c3b1984cf2 | ||
|
|
66103dd4cf | ||
|
|
15796a43be | ||
|
|
b453e49a64 | ||
|
|
bdde5eb6c0 | ||
|
|
821b52ec63 | ||
|
|
64444c3470 | ||
|
|
15821ea1f0 | ||
|
|
4da2ade4ab | ||
|
|
e58f09a3a2 | ||
|
|
0c20455042 | ||
|
|
128dd6e5b6 | ||
|
|
2df0a310e8 | ||
|
|
854a1cf640 | ||
|
|
cbd0a13cc2 | ||
|
|
6be6743775 | ||
|
|
440e3d7fe4 | ||
|
|
718092ace9 | ||
|
|
b04f04c2d5 | ||
|
|
f0f16e38a5 | ||
|
|
3f4feeb0f7 | ||
|
|
63278cc96d | ||
|
|
72bfd2bba1 | ||
|
|
dfa7dcd7d1 | ||
|
|
63fae5d61b | ||
|
|
b28a8ab0d9 | ||
|
|
f398aabf4f | ||
|
|
f066941cc3 | ||
|
|
9dcc700e9b | ||
|
|
ea7591ceb7 | ||
|
|
1da581452c | ||
|
|
b8d82a392c | ||
|
|
b34b315b1e | ||
|
|
1b8d03bcec | ||
|
|
30df230ca0 | ||
|
|
2bdac9ff23 | ||
|
|
c2a8895543 | ||
|
|
1aa25005bd | ||
|
|
9d4528e27a | ||
|
|
f18ce1d48f | ||
|
|
2f30892999 | ||
|
|
e8db8da7ba | ||
|
|
a06259edc8 | ||
|
|
781b70e8f6 | ||
|
|
72a70777eb | ||
|
|
a69df82208 | ||
|
|
aa99c2edcc | ||
|
|
5cad9df360 | ||
|
|
6d2d918871 | ||
|
|
efbe2a31c0 | ||
|
|
c087cba6d5 | ||
|
|
547d561ec0 | ||
|
|
04909358f2 | ||
|
|
5f0dc4802f | ||
|
|
3349f59a56 | ||
|
|
bc2f767e74 | ||
|
|
012d8753ea | ||
|
|
acb1ad4b9e | ||
|
|
d813976707 | ||
|
|
4fe82568f8 | ||
|
|
4e0359d11f | ||
|
|
52b60d37b1 | ||
|
|
cc5a32b8f2 | ||
|
|
2dd4763647 | ||
|
|
eb83e65c9e | ||
|
|
f998415be5 | ||
|
|
5bf8673afe | ||
|
|
4838dd1e7d | ||
|
|
f7708e260d | ||
|
|
8a2f7c2b73 | ||
|
|
51646007b4 | ||
|
|
cf7a3205de | ||
|
|
bb854a1d37 | ||
|
|
b975015b12 | ||
|
|
a4e1c42dcd | ||
|
|
8c2eea0b3d | ||
|
|
f7f37fe584 | ||
|
|
44577e9e47 | ||
|
|
c34180e2df | ||
|
|
a42443d9ff | ||
|
|
5250b2df7d | ||
|
|
0b1b0d1e17 | ||
|
|
fa79519688 | ||
|
|
8c51f5404f | ||
|
|
d58225f757 | ||
|
|
413b04d360 | ||
|
|
db1f8f193e | ||
|
|
2a1ea43f4f | ||
|
|
a4455e3f30 | ||
|
|
b5ffea4ee2 | ||
|
|
f12bca6432 | ||
|
|
8594aa5558 | ||
|
|
f0afb017f7 | ||
|
|
314581e888 | ||
|
|
ea6e288bca | ||
|
|
1f21c2668b | ||
|
|
7ec2e18907 | ||
|
|
1e44ddf80c | ||
|
|
db545706f5 | ||
|
|
89c6198dab | ||
|
|
59aa23f847 | ||
|
|
c095b052d9 | ||
|
|
fad04e5265 | ||
|
|
13320bfb6b | ||
|
|
16ec731a80 | ||
|
|
f157a946e8 | ||
|
|
5a9fcf1c4f | ||
|
|
ead0797e43 | ||
|
|
4ec4a564e6 | ||
|
|
b4ff470fda | ||
|
|
0305ecc846 | ||
|
|
eb8965458e | ||
|
|
544d9defeb | ||
|
|
7769949627 | ||
|
|
79aae4e91e | ||
|
|
875085a576 | ||
|
|
464d99efee | ||
|
|
ef0e31f171 | ||
|
|
e67543ba67 | ||
|
|
b76e1498d1 | ||
|
|
3918d71392 | ||
|
|
0cb993900a | ||
|
|
fe1f469a15 | ||
|
|
c148129bd9 | ||
|
|
114dcd4c27 | ||
|
|
b12c11330b | ||
|
|
99f0d27705 | ||
|
|
b2b4e687a2 | ||
|
|
6ac813aeec | ||
|
|
ce0aeca153 | ||
|
|
79bc748bc3 | ||
|
|
b533e9d4d6 | ||
|
|
8df50f0a41 | ||
|
|
3ba86a68ad | ||
|
|
825f31d939 | ||
|
|
3dc7aa9132 | ||
|
|
f91bb446ef | ||
|
|
c5b1bb53c4 | ||
|
|
2bbefc17f4 | ||
|
|
57f64df400 | ||
|
|
6d1edcc097 | ||
|
|
5a26321c22 | ||
|
|
c499ff3b51 | ||
|
|
69bb122b82 | ||
|
|
0936098eb5 | ||
|
|
55c9ab6a39 | ||
|
|
636ed33ad5 | ||
|
|
f726ea6038 | ||
|
|
d506c0911d | ||
|
|
383931b0ac | ||
|
|
7e2eecd0d0 | ||
|
|
3b996b920f | ||
|
|
e1072fa87e | ||
|
|
3350778a00 | ||
|
|
5feab0a69a | ||
|
|
f48ee288b9 | ||
|
|
d845777e9d | ||
|
|
4eea199abb | ||
|
|
621c256867 | ||
|
|
23e5b795c3 | ||
|
|
764e2b9db0 | ||
|
|
5bb9f62508 | ||
|
|
784686c87e | ||
|
|
e6a5308498 | ||
|
|
b3d6aded2a | ||
|
|
7c508a6f59 | ||
|
|
a70b90adb0 | ||
|
|
cec5ae1ae9 | ||
|
|
a02ac6a4ad | ||
|
|
7496998985 | ||
|
|
1bc4619881 | ||
|
|
a3fc216cd1 | ||
|
|
c223ac0456 | ||
|
|
a29ff00f6e | ||
|
|
58d5f4b1e1 | ||
|
|
605ce25a5d | ||
|
|
5effc7c4c8 | ||
|
|
00008d5186 | ||
|
|
0fbb4f9b23 | ||
|
|
f4ba006995 | ||
|
|
f779a4dc96 | ||
|
|
f72695f958 | ||
|
|
bdb14f3711 | ||
|
|
d16f2f3722 | ||
|
|
5b52c01d8f | ||
|
|
9297c6d626 | ||
|
|
60789fe78f | ||
|
|
79f64cde76 | ||
|
|
f71e7daac7 | ||
|
|
3240745d32 | ||
|
|
a825320f7c | ||
|
|
833088d020 | ||
|
|
6caf7d27e4 | ||
|
|
ddee62a7a3 | ||
|
|
ba145fa703 | ||
|
|
08296f179d | ||
|
|
90d9c9150b | ||
|
|
5564a7150f | ||
|
|
847f6606b2 | ||
|
|
739c956f27 | ||
|
|
f0d95fe8cf | ||
|
|
62b6fc8944 | ||
|
|
dbbe86f0a0 | ||
|
|
cc2e1d4b5b | ||
|
|
1c77488486 | ||
|
|
9c62305b01 | ||
|
|
d63fd1df4c | ||
|
|
448aa3dc72 | ||
|
|
b8e96d3f03 | ||
|
|
dcbbeb8b65 | ||
|
|
3514aead26 | ||
|
|
ec4ed8f7f2 | ||
|
|
a64ba556e1 | ||
|
|
1ccb7b53e5 | ||
|
|
7f9719631b | ||
|
|
e843f2d74c | ||
|
|
a451bdcd42 | ||
|
|
1900d8f0a5 | ||
|
|
cae5963b24 | ||
|
|
f724b1997e | ||
|
|
5338b6acef | ||
|
|
bc65df29a9 | ||
|
|
f48010a829 | ||
|
|
b28320f23e | ||
|
|
95c1a2c5e6 | ||
|
|
614ac1d780 | ||
|
|
a3a13dc7cb | ||
|
|
39578cca29 | ||
|
|
6212395019 | ||
|
|
620189bcbf | ||
|
|
629d4b8e9c | ||
|
|
2c157e3a86 | ||
|
|
873e6ce0a2 | ||
|
|
5131a50222 | ||
|
|
ad6cc0a389 | ||
|
|
7e0c8b4274 | ||
|
|
3cc3d7fd6e | ||
|
|
de0ca53667 | ||
|
|
aad8256f80 | ||
|
|
7a2d4a0992 | ||
|
|
201e873e5d | ||
|
|
31fd17e8a2 | ||
|
|
efc8e8c584 | ||
|
|
838b6c5e41 | ||
|
|
e65af8b086 | ||
|
|
5b8934a193 | ||
|
|
777e0e5d46 | ||
|
|
02fbd6d229 | ||
|
|
d3773c8a5d | ||
|
|
9b030eaa82 | ||
|
|
1f5f382ffd | ||
|
|
914cb0a99d | ||
|
|
fca5a4e021 | ||
|
|
e8129d33d0 | ||
|
|
0e17974c40 | ||
|
|
d10b5a6587 | ||
|
|
48a31481b3 | ||
|
|
b0c6742743 | ||
|
|
42f3785d41 | ||
|
|
2355191fda | ||
|
|
83e5a79086 | ||
|
|
cdb31069de | ||
|
|
b886279b63 | ||
|
|
076eac9fdd | ||
|
|
a6deecb38d | ||
|
|
a8405b7892 | ||
|
|
967ca29ff0 | ||
|
|
428eb1b337 | ||
|
|
73226678cc | ||
|
|
654c0d002a | ||
|
|
fe734b4b38 | ||
|
|
9df0d00487 | ||
|
|
8599b48ed8 | ||
|
|
a3e3a655fe | ||
|
|
1d5a5d348b | ||
|
|
94622644f1 | ||
|
|
a432fe0de1 | ||
|
|
8e2be15c61 | ||
|
|
c19ac071d6 | ||
|
|
2ef8be005e | ||
|
|
980ee60024 | ||
|
|
15d2979366 | ||
|
|
25690e339c | ||
|
|
ae20fcc018 | ||
|
|
6b073ef5d7 | ||
|
|
2e98ca93d0 | ||
|
|
e60f5b9896 | ||
|
|
bce9fe8164 | ||
|
|
1ae95f3ec7 | ||
|
|
2e3e2d1740 | ||
|
|
8f7ce12d41 | ||
|
|
93aaeca08a | ||
|
|
d0d6490732 | ||
|
|
7af9728f5f | ||
|
|
b431f22584 | ||
|
|
d3dadbbd8d | ||
|
|
40d171c197 | ||
|
|
e7609febb3 | ||
|
|
78ec56451c | ||
|
|
0c7c6652a7 | ||
|
|
bc89db47d6 | ||
|
|
60f2732c4b | ||
|
|
4aa80ca2af | ||
|
|
58aeae86da | ||
|
|
4b10f5831b | ||
|
|
db0d827424 | ||
|
|
df021b96c7 | ||
|
|
d7044e8a8a | ||
|
|
9ded121123 | ||
|
|
8482be0aef | ||
|
|
4eea63fd16 | ||
|
|
c30103c5ec | ||
|
|
b51535e43f | ||
|
|
c4e8361bdf | ||
|
|
9b5e527bf5 | ||
|
|
beaeaad347 | ||
|
|
20bf43868e | ||
|
|
0792fc1a6d | ||
|
|
b936987419 | ||
|
|
27ac138a66 | ||
|
|
41e8d17219 | ||
|
|
bc53601431 | ||
|
|
f55334e816 | ||
|
|
a3f73ce252 | ||
|
|
1203967cdf | ||
|
|
568d8fcd01 | ||
|
|
d720f20fd0 | ||
|
|
ae78b31e9e | ||
|
|
41785d5763 | ||
|
|
5dc1d5b45f | ||
|
|
58dd6011a8 | ||
|
|
797b28bbf8 | ||
|
|
da30b9cce8 | ||
|
|
1d085448a2 | ||
|
|
8e23e5f682 | ||
|
|
337d2be637 | ||
|
|
9762d5bab0 | ||
|
|
ea63c7d9e2 | ||
|
|
d5fb889e15 | ||
|
|
71bac88f6c | ||
|
|
e86ff448b8 | ||
|
|
89fd33f0a3 | ||
|
|
34b57b5ef2 | ||
|
|
dc0e35c21b | ||
|
|
b7625dd45d | ||
|
|
10f375d325 | ||
|
|
433d12e01a | ||
|
|
ada835f12f | ||
|
|
451e834b2b | ||
|
|
f91d740dc1 | ||
|
|
926b1a1224 | ||
|
|
5d772df810 | ||
|
|
841e1cc7b2 | ||
|
|
879d8fbdcd | ||
|
|
a275fb4618 | ||
|
|
981fe2cef9 | ||
|
|
82828beee5 | ||
|
|
c2b988119c | ||
|
|
6aaf27ebc5 | ||
|
|
eb692e0eda | ||
|
|
7ae7b6a09f | ||
|
|
46145d061c | ||
|
|
fdd9676283 | ||
|
|
686fdaac38 | ||
|
|
5c0779502a | ||
|
|
a226b353f8 | ||
|
|
46d978a6af | ||
|
|
390086fddc | ||
|
|
182b17c5a6 | ||
|
|
d499df96e0 | ||
|
|
e1645a45a6 | ||
|
|
7a2ae61405 | ||
|
|
5e017a3f3f | ||
|
|
df53b8e04d | ||
|
|
39587eadc8 | ||
|
|
706b7b3304 | ||
|
|
e587984615 | ||
|
|
99a25b98bd | ||
|
|
166d18cf51 | ||
|
|
07b1a51bc6 | ||
|
|
377280f5b5 | ||
|
|
cda63d0706 | ||
|
|
590d1b39e5 | ||
|
|
5d13212687 | ||
|
|
5821325879 | ||
|
|
29bdfb20ab | ||
|
|
5d592bb366 | ||
|
|
2571837c88 | ||
|
|
f69bd81f97 | ||
|
|
594edb6fd8 | ||
|
|
cfd9e478ee | ||
|
|
f00c428bbe | ||
|
|
8e35e3a7b9 | ||
|
|
5ac344ac00 | ||
|
|
918a74cce2 | ||
|
|
fd59368b78 | ||
|
|
61402fe1a2 | ||
|
|
9258732319 | ||
|
|
64e6cf7460 | ||
|
|
51f8013b8a | ||
|
|
1f73687f90 | ||
|
|
1eb5d4634b | ||
|
|
63c75e1f0e | ||
|
|
763d5b92a2 | ||
|
|
1473503ae7 | ||
|
|
df5afd9d37 | ||
|
|
630c4a5800 | ||
|
|
fbe4a7a52f | ||
|
|
c545c4f6cc | ||
|
|
6348ceadfe | ||
|
|
930d8df78d | ||
|
|
fd9537549a | ||
|
|
694f875483 | ||
|
|
8fbc5fca48 | ||
|
|
c6d8f736e3 | ||
|
|
2000882245 | ||
|
|
52218604b0 | ||
|
|
fe58460445 | ||
|
|
0b7186d44d | ||
|
|
0ff9d1d988 | ||
|
|
cda9448ef0 | ||
|
|
4387ccd8db | ||
|
|
845496d205 | ||
|
|
4c82ee69ae | ||
|
|
6af1fe9bdf | ||
|
|
c5f048f1c7 | ||
|
|
8543293ad2 | ||
|
|
c7fa63baee | ||
|
|
763b5774f2 | ||
|
|
0cf7fde104 | ||
|
|
e9e9fb22e2 | ||
|
|
488ca42f3e | ||
|
|
e324c6452d | ||
|
|
01714dfb49 | ||
|
|
a9a7df0439 | ||
|
|
d5634eb360 | ||
|
|
c724358425 | ||
|
|
ce46a3e791 | ||
|
|
1c256c7686 | ||
|
|
60d72a0f50 | ||
|
|
920f482d9c | ||
|
|
b6d7af01cf | ||
|
|
f4c02305c8 | ||
|
|
a7888c627c | ||
|
|
3d1ea510c1 | ||
|
|
868857b075 | ||
|
|
fedcadcafd | ||
|
|
d9d9bb6675 | ||
|
|
18ce6facb7 | ||
|
|
8e91ed0203 | ||
|
|
1c4362e658 | ||
|
|
7187b5f041 | ||
|
|
e11681b16e | ||
|
|
b843881827 | ||
|
|
a481294ce7 | ||
|
|
ed99b91dda | ||
|
|
d7bda5dd8f | ||
|
|
6e4193fc42 | ||
|
|
c3572782b7 | ||
|
|
5918028c17 | ||
|
|
8fb465e560 | ||
|
|
9096fdf8c0 | ||
|
|
1cffa9bea3 | ||
|
|
b272797408 | ||
|
|
dcfad7ede7 | ||
|
|
48c0213c19 | ||
|
|
045bda5f2e | ||
|
|
5aa72841ea | ||
|
|
98dad4b1be | ||
|
|
49c0d13a3f | ||
|
|
9c8a33be2e | ||
|
|
eddf7d74d8 | ||
|
|
a880449fbc | ||
|
|
d81e88dbbc | ||
|
|
f73e4954e9 | ||
|
|
92954a18d3 | ||
|
|
376a1a0908 | ||
|
|
3f705b0c1e | ||
|
|
6d4d947a18 | ||
|
|
f9a5f1f8bb | ||
|
|
c815067fde | ||
|
|
53ea503c26 | ||
|
|
2366f340fd | ||
|
|
5505a96205 | ||
|
|
c1a1833e3b | ||
|
|
9c32fb39a8 | ||
|
|
a80cb630dd | ||
|
|
ece54edd18 | ||
|
|
35c33c2804 | ||
|
|
389cd4bee6 | ||
|
|
a80dd5cb26 | ||
|
|
886f18c732 | ||
|
|
ef43ef882a | ||
|
|
63ef7bccd2 | ||
|
|
4863ad2d71 | ||
|
|
219c7642e5 | ||
|
|
b839d66b10 | ||
|
|
362af3afae | ||
|
|
caba817083 | ||
|
|
6ff6f22bc2 | ||
|
|
33ac496fc8 | ||
|
|
ebebc496df | ||
|
|
a1f1e7e966 | ||
|
|
3f6d1d848c | ||
|
|
acb4421b8b | ||
|
|
8050bf79b1 | ||
|
|
e27296d935 | ||
|
|
2891b0badc | ||
|
|
3b9e702ba9 | ||
|
|
58d5c73846 | ||
|
|
2a0582c8bf | ||
|
|
0a5f3a447e | ||
|
|
d63f33d197 | ||
|
|
093db10b18 | ||
|
|
0199cca9da | ||
|
|
452cfa4ca5 | ||
|
|
68a9e6f96d | ||
|
|
78ef9ef5dc | ||
|
|
4ee28e267c | ||
|
|
2a37c57394 | ||
|
|
97064f82ad | ||
|
|
8d75eddbf5 | ||
|
|
07ef78ce07 | ||
|
|
9889b5435f | ||
|
|
b26d6e1e11 | ||
|
|
31c202887f | ||
|
|
4b38835edf | ||
|
|
d7948ad01a | ||
|
|
72df0c550b | ||
|
|
85ed858a24 | ||
|
|
f05c761b71 | ||
|
|
78d1184ee5 | ||
|
|
38ade84160 | ||
|
|
2f34bc1499 | ||
|
|
06bb07d6d0 | ||
|
|
1fd7a5bbd1 | ||
|
|
31c994a6de | ||
|
|
76bf457206 | ||
|
|
8e85dddebb | ||
|
|
bf76aa56e1 | ||
|
|
4e9468ab1a | ||
|
|
a4f95a85b1 | ||
|
|
fc27d088b0 | ||
|
|
40f19f2cdf | ||
|
|
43d7f24f1c | ||
|
|
e09de1116e | ||
|
|
8e87f4f56f | ||
|
|
fc38d2816d | ||
|
|
71d6ccb2b7 | ||
|
|
93d3ee72e7 | ||
|
|
23d85fcce6 | ||
|
|
411a88af6b | ||
|
|
ae076ef087 | ||
|
|
aff2d37425 | ||
|
|
384690ac59 | ||
|
|
f345a60ef8 | ||
|
|
eee4f0aa5e | ||
|
|
bd8a904eca | ||
|
|
963b4479a8 | ||
|
|
08234aa2b8 | ||
|
|
b3d003c0b5 | ||
|
|
e3ec9e0570 | ||
|
|
afd1f8e068 | ||
|
|
d113def524 | ||
|
|
424ef47428 | ||
|
|
e4eba3b888 | ||
|
|
18377cc045 | ||
|
|
2cfc9fd1a6 | ||
|
|
056d6258c8 | ||
|
|
b057401f91 | ||
|
|
c80e9ca5df | ||
|
|
8fa2cc52ba | ||
|
|
dc2bd0825c | ||
|
|
ebe5f0fecd | ||
|
|
685f14f961 | ||
|
|
7d6c1a502b | ||
|
|
deafc750cf | ||
|
|
a91a4d1e89 | ||
|
|
7f7df1e6e5 | ||
|
|
46564e3d34 | ||
|
|
8fb70a7097 | ||
|
|
5803915c37 | ||
|
|
45714addb2 | ||
|
|
b42293fb4e | ||
|
|
e2f1bdeecf | ||
|
|
8d29a839ff | ||
|
|
21374e28f0 | ||
|
|
212f3d1ec3 | ||
|
|
60d500f43f | ||
|
|
24a8b73609 | ||
|
|
5e047389dc | ||
|
|
ac80cad773 | ||
|
|
385339b14e | ||
|
|
17948dace8 | ||
|
|
127cb9906a | ||
|
|
1064dbd97c | ||
|
|
ea80e51e0e | ||
|
|
a949f0ec65 | ||
|
|
d825bb749c | ||
|
|
e0fa4d24c4 | ||
|
|
cb58b2b711 | ||
|
|
72c08f9073 | ||
|
|
11cfcaa8ed | ||
|
|
c41929b248 | ||
|
|
ae86534696 | ||
|
|
230d91760e | ||
|
|
8817b5ade4 | ||
|
|
22eb65b8be | ||
|
|
1a5e1ba0a5 | ||
|
|
f7739f9bf1 | ||
|
|
961d3a1514 | ||
|
|
842499ec02 | ||
|
|
fb4afb54ed | ||
|
|
7004cfd5d7 | ||
|
|
1d8902f810 | ||
|
|
917887781d | ||
|
|
a99224334e | ||
|
|
c38c598032 | ||
|
|
981ab84fe7 | ||
|
|
edefecba3b |
No files matched your search
@@ -1,3 +1,81 @@
|
||||
2003-01-19 Daniel Morgan <[email protected]>
|
||||
|
||||
* doc/ibmdb2: added file which is new web page
|
||||
about IBM DB2 data provider at Mono.Data.DB2Client
|
||||
|
||||
* makefile
|
||||
* commands: added ibmdb2 web page to go-mono web site
|
||||
|
||||
* doc/ado-net: added a couple more developers email, plus made the
|
||||
email spam resistant, added Mono's DB2 data provider to list,
|
||||
added more info about the ProviderFactory and retrieving data using
|
||||
ADO.NET from ASP.NET, add notes about testing, misc cleanup
|
||||
|
||||
* doc/mysql
|
||||
* doc/postgresql
|
||||
* doc/sqlclient
|
||||
* doc/oracle
|
||||
* doc/tdsclient
|
||||
* doc/firebird
|
||||
* doc/oledb
|
||||
* doc/odbc
|
||||
* doc/sybase
|
||||
* doc/sqlite: added testing notes and C# examples
|
||||
|
||||
* doc/gtk-sharp: added links for GTK# for Windows
|
||||
|
||||
* man/sqlsharp.1: added providers Npgsql and MySQLNet
|
||||
|
||||
2003-01-17 Duncan Mak <[email protected]>
|
||||
|
||||
* runtime/Makefile.am: Add the new Mono.Data.DB2Client.dll.
|
||||
|
||||
2003-01-16 Martin Baulig <[email protected]>
|
||||
|
||||
* configure.in (GTHREAD_LIBS, GTHREAD_CFLAGS): Removed the gthread
|
||||
check again, we're now using the mono/io-layer for this.
|
||||
|
||||
Wed Jan 15 16:20:54 CET 2003 Paolo Molaro <[email protected]>
|
||||
|
||||
* configure.in: allow MacOSX (from various people).
|
||||
|
||||
2003-01-14 Martin Baulig <[email protected]>
|
||||
|
||||
* configure.in (GTHREAD_LIBS, GTHREAD_CFLAGS): Added check for gthread.
|
||||
|
||||
2002-12-27 Jeroen Janssen <[email protected]>
|
||||
* fixed url for System.Windows.Forms in the class status
|
||||
|
||||
2002-12-18 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* configure.in: moved struct tm field tm_gmtoff check before the check
|
||||
for timezone global variable. This makes Timezone work for me (debian
|
||||
sid, linux, x86, which has both the field and the global variables).
|
||||
|
||||
2002-12-10 Daniel Morgan <[email protected]>
|
||||
|
||||
* doc/oracle: added file which is
|
||||
a new web page oracle.html
|
||||
|
||||
* doc/ado-net: clean up and add link
|
||||
to oracle.html
|
||||
|
||||
* doc/web/commands
|
||||
* doc/web/makefile: added oracle.html
|
||||
|
||||
2002-12-10 Daniel Morgan <[email protected]>
|
||||
|
||||
* man/Makefile.am: changed sqlsharpcli.1 to sqlsharp.1
|
||||
|
||||
* man/sqlsharpcli.1: renamed to sqlsharp.1
|
||||
|
||||
2002-12-09 Tim Haynes <[email protected]>
|
||||
|
||||
* mono/jit/jit.c
|
||||
* mono/metadata/icall.c: added mono_install_get_config_dir() to
|
||||
utilize the MONO_CFG_DIR environment variable for specifying
|
||||
different machine.configs.
|
||||
|
||||
2002-12-06 Duncan Mak <[email protected]>
|
||||
|
||||
* data/Makefile.am (EXTRA_DIST): Add machine.config
|
||||
|
||||
@@ -1,3 +1,266 @@
|
||||
Happy new year!
|
||||
|
||||
The Mono team is proud to release Mono 0.18, with plenty of bug
|
||||
fixes and improvements. If you are a happy 0.17 user, this
|
||||
release is a happiness extension release. Many bugs in the
|
||||
runtime, class libraries and C# compiler have been fixed.
|
||||
|
||||
Also, our special envoy in Japan has reported that there is
|
||||
some naming confussion about the naming of Mono, as can be
|
||||
seen in the following documentary material:
|
||||
|
||||
Atsushi Enomoto shows the source of confussion:
|
||||
|
||||
http://primates.ximian.com/~duncan/gallery/Duncan-in-Tokyo/DSCN0702
|
||||
|
||||
Nick and Duncan echo it:
|
||||
|
||||
http://primates.ximian.com/~duncan/gallery/Duncan-in-Tokyo/DSCN0703
|
||||
|
||||
* Availability
|
||||
|
||||
Mono 0.18 packages and source code is available for download from:
|
||||
|
||||
http://www.go-mono.com/download.html
|
||||
|
||||
Those using Red Carpet on Linux can install Mono 0.18 from
|
||||
the Mono channel. The packages have already been pushed for
|
||||
you.
|
||||
|
||||
At release time we have packages for Red Hat 8.0, 7.3,
|
||||
7.2 and 7.1 and Mandrake 8.2.
|
||||
|
||||
* Contributors to this release
|
||||
|
||||
This release is brought to you by:
|
||||
|
||||
Alejandro Sanchez, Alp Toker, Atsushi Enomoto, Cesar Octavio
|
||||
Lopez Netaren, Daniel Lopez (mod_mono), Daniel Morgan, Dennis
|
||||
Hayes, Dick Porter, Dietmar Maurer, Duncan Mak, Eduardo
|
||||
Garcia, Gaurav Vaish, Gonzalo Paniagua, Jackson Harper, Jaime
|
||||
Anguiano, Jeroen Janssen, Johannes Roith, Jonathan Pryor, Juli
|
||||
Mallett, Lluis Sanchez, Marco Ridoni, Martin Baulig, Miguel de
|
||||
Icaza, Nick Drochak, Paolo Molaro, Patrik Torstensson, Piers
|
||||
Haken, Rachel Hestilow, Rafael Teixeira, Ravi Pratap,
|
||||
Sebastian Pouliot, Tim Coleman, Tim Hayes, Ville Palo, Zoltan
|
||||
Varga.
|
||||
|
||||
* New in this release
|
||||
|
||||
VB.NET compiler:
|
||||
|
||||
Many improvements to the Mono VB.NET compiler.
|
||||
|
||||
ASP.NET:
|
||||
|
||||
Plenty of bug fixes in ASP.NET. Larger applications
|
||||
can now be run with it. The authentication system has
|
||||
been deployed, most changes are from Gonzalo.
|
||||
|
||||
We have a modified IBuySpy running (without Xslt)
|
||||
|
||||
If you want to run ASP.NET you can run it with either
|
||||
our XSP proof-of-concept server, or with Daniel's
|
||||
Apache module that can be fetched from CVS (module
|
||||
name: mod_apache)
|
||||
|
||||
Type Reflector:
|
||||
|
||||
A Console, Gtk# and Windows.Forms tool to browse
|
||||
compiled assemblies and examine the types on it, from
|
||||
Jonathan Pryor.
|
||||
|
||||
Moving to NUnit 2.0
|
||||
|
||||
Nick continues the work on moving our test suite to NUnit 2.0
|
||||
|
||||
Mobile.Controls:
|
||||
|
||||
Gaurav has started work on the Mobile controls, which
|
||||
are required to run some of the reference applications
|
||||
in full-mode like IBuySpy.
|
||||
|
||||
Remoting:
|
||||
|
||||
The remoting infrastructure has got a big boost from
|
||||
Lluis in this release.
|
||||
|
||||
System.Data/XML
|
||||
|
||||
Ville has been working on improving our System.Data
|
||||
classes in the XML assembly.
|
||||
|
||||
Crypto:
|
||||
|
||||
Plenty of new crypto from Sebastien as well. A new
|
||||
web page in our site can be used to track this.
|
||||
|
||||
http://www.go-mono.com/crypto.html
|
||||
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Hello!
|
||||
|
||||
Version 0.17 of Mono has been released.
|
||||
|
||||
There are plenty of new features, bug fixes, new classes,
|
||||
performance improvements, optimizations and much more
|
||||
available in this release.
|
||||
|
||||
* Stats
|
||||
|
||||
2605 cvs commits to the Mono repository since October 1st, an
|
||||
average of 37 commits per day including weekends.
|
||||
|
||||
212 commits to the Mono module.
|
||||
1438 commits to the MCS module.
|
||||
|
||||
* Mono Improvements:
|
||||
|
||||
Work has begun to make the runtime run a finalizer thread and
|
||||
invoke all the finalizers from this thread. This is the same
|
||||
behavior as Java and the Microsoft runtime, but it is disabled
|
||||
on this build.
|
||||
|
||||
Integrated the s390 work from Neale Ferguson.
|
||||
|
||||
Beginning of the work for pre-compiling code (Ahead of time
|
||||
compilation) for Mono (based on the early work of Zoltan).
|
||||
|
||||
New option `--noboundscheck' for benchmark purposes, it
|
||||
disables array bound checks.
|
||||
|
||||
Uses mmap instead of SysV shared memory for the Windows API
|
||||
emulation layer.
|
||||
|
||||
Plenty of bug fixes, improvements and integration with the
|
||||
upper layer class libraries.
|
||||
|
||||
New exception handling code uses the GCC native support for
|
||||
stack-walking if available and gives big performance boost
|
||||
(15% on mcs bootstrap).
|
||||
|
||||
A lot of the work in the new release of Mono is required for
|
||||
the Mono Debugger (which will be released separately). The
|
||||
Mono debugger is interesting, because it can debug both
|
||||
managed and unmanaged applications, but it only supports the
|
||||
JITer for debugging.
|
||||
|
||||
Dick, Dietmar, Gonzalo, Martin and Paolo were in charge of
|
||||
most of these changes.
|
||||
|
||||
* Compiler improvements:
|
||||
|
||||
Many bug fixes as usual, better C# compliancy.
|
||||
|
||||
Performance improvements. The new release of the Mono C#
|
||||
compiler is 37% faster than the previous version (self-compile
|
||||
is down to 8 seconds). On my P4 1.8Ghz machine, the Mono C#
|
||||
compiler compiles (342,000 lines per minute).
|
||||
|
||||
Thanks to go Ravi and Martin for helping out with the bug
|
||||
fixing hunt.
|
||||
|
||||
* Cryptography and Security classes
|
||||
|
||||
Sebastien Pouliot and Andrew Birkett were extremely busy
|
||||
during the past two months working on the cryptography
|
||||
classes, many of the crypto providers are now working
|
||||
|
||||
Jackson on the other hand helped us with the security
|
||||
classes, he said about those:
|
||||
|
||||
`Writing security classes is the most exciting thing I have
|
||||
ever done, I can not wait to write more of them'.
|
||||
|
||||
* ASP.NET:
|
||||
|
||||
We have now moved the code from the XSP server (which was our
|
||||
test bed for ASP.NET) into the right classes inside
|
||||
System.Web, and now any web server that was built by using the
|
||||
System.Web hosting interfaces can be used with Mono.
|
||||
|
||||
The sample XSP server still exists, but it is now just a
|
||||
simple implementation of the WorkerRequest and ApplicationHost
|
||||
classes and can be used to test drive ASP.NET. A big thanks
|
||||
goes to Gonzalo who worked on this night and day (mostly
|
||||
night).
|
||||
|
||||
Gaurav keeps helping us with the Web.Design classes, and
|
||||
improving the existing web controls.
|
||||
|
||||
* ADO.NET:
|
||||
|
||||
New providers are available in this release. The relentless
|
||||
System.Data team (Brian, Dan, Rodrigo, Tim and Ville) are
|
||||
hacking non-stop on the databse code. Improving existing
|
||||
providers, and new providers.
|
||||
|
||||
The new providers on this release:
|
||||
|
||||
* Oracle
|
||||
* MS SQL
|
||||
* ODBC
|
||||
* Sybase
|
||||
* Sqlite (for embedded use).
|
||||
|
||||
Many regression tests have been added as well (Ville has been
|
||||
doing a great job here).
|
||||
|
||||
Brian also created a DB provider multiplexor (The ProviderFactory)
|
||||
|
||||
Stuart Caborn contributed Writing XML from a DataSet.
|
||||
Luis Fernandez contributed constraint handling code.
|
||||
|
||||
Also there is new a Gtk# GUI tool from Dan that can be used to
|
||||
try out various providers.
|
||||
|
||||
* System.XML:
|
||||
|
||||
Atsushi has taken the lead in fixing and plugging the missing
|
||||
parts of the System.XML namespace, many fixes, many
|
||||
improvements.
|
||||
|
||||
* CodeDom and the C# provider.
|
||||
|
||||
Jackson Harper has been helping us with the various interface
|
||||
classes from the CodeDOM to the C# compiler, in this release
|
||||
a new assembly joins us: Cscompmgd. It is a simple assembly,
|
||||
and hence Microsoft decided not to waste an entire "System"
|
||||
"dot" on it.
|
||||
|
||||
* Testing
|
||||
|
||||
Nick Drochak has integrated the new NUnit 2.0 system.
|
||||
|
||||
* Monograph:
|
||||
|
||||
Monograph now has a --stats option to get statistics on
|
||||
assembly code.
|
||||
|
||||
|
||||
CVS Contributors to this release:
|
||||
|
||||
Alejandro Sanchez, Alp Toker, Andrew Birkett, Atsushi Enomoto,
|
||||
Brian Ritchie, Cesar Octavio Lopez Nataren, Chris Toshok,
|
||||
Daniel Morgan, Daniel Stodden, Dennis Hayes, Dick Porter,
|
||||
Diego Sevilla, Dietmar Maurer, Duncan Mak, Eduardo Garcia,
|
||||
Ettore Perazzoli, Gaurav Vaish, Gonzalo Paniagua, Jackson
|
||||
Harper, Jaime Anguiano, Johannes Roith, John Sohn, Jonathan
|
||||
Pryor, Kristian Rietveld, Mads Pultz, Mark Crichton, Martin
|
||||
Baulig, Martin Willemoes Hansen, Miguel de Icaza, Mike
|
||||
Kestner, Nick Drochak, Nick Zigarovich, Paolo Molaro, Patrik
|
||||
Torstensson, Phillip Pearson, Piers Haken, Rachel Hestilow,
|
||||
Radek Doulik, Rafael Teixeira, Ravi Pratap, Rodrigo Moya,
|
||||
Sebastien Pouliot, Tim Coleman, Tim Haynes, Ville Palo,
|
||||
Vladimir Vukicevic, and Zoltan Varga.
|
||||
|
||||
(Am sorry, I could not track everyone from the ChangeLog
|
||||
messages, I apologize in advance for the missing
|
||||
contributors).
|
||||
|
||||
------------------------------------------------------------------------
|
||||
|
||||
Hello!
|
||||
|
||||
Version 0.16 of Mono has been released! This is mostly a bug
|
||||
|
||||
@@ -19,4 +19,3 @@
|
||||
#undef MONO_SIZEOF_SUNPATH
|
||||
#undef NEED_LINK_UNLINK
|
||||
#undef PTHREAD_POINTER_ID
|
||||
#undef MONO_USE_EXC_TABLES
|
||||
+35
-17
@@ -1,9 +1,16 @@
|
||||
AC_INIT(README)
|
||||
AC_CANONICAL_SYSTEM
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_INIT_AUTOMAKE(mono, 0.16)
|
||||
AM_INIT_AUTOMAKE(mono, 0.18)
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
#
|
||||
# These are the flags that need to be stored in the mono.pc file for
|
||||
# compiling code that will embed Mono
|
||||
#
|
||||
libmono_cflags=""
|
||||
AC_SUBST(libmono_cflags)
|
||||
|
||||
# Thread configuration inspired by sleepycat's db
|
||||
AC_MSG_CHECKING([host platform characteristics])
|
||||
case "$host" in
|
||||
@@ -18,6 +25,7 @@ case "$host" in
|
||||
*-*-*bsd*)
|
||||
platform_win32=no
|
||||
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
|
||||
libmono_cflags="-D_THREAD_SAFE"
|
||||
LDFLAGS="$LDFLAGS -pthread"
|
||||
AC_DEFINE(NEED_LINK_UNLINK)
|
||||
AC_DEFINE(PTHREAD_POINTER_ID)
|
||||
@@ -25,14 +33,24 @@ case "$host" in
|
||||
;;
|
||||
*-*-linux*)
|
||||
platform_win32=no
|
||||
AC_DEFINE(MONO_USE_EXC_TABLES)
|
||||
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -fexceptions"
|
||||
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -DMONO_USE_EXC_TABLES -D_GNU_SOURCE -D_REENTRANT -fexceptions"
|
||||
libmono_cflags="-DMONO_USE_EXC_TABLES -fexceptions -D_REENTRANT"
|
||||
libdl="-ldl"
|
||||
;;
|
||||
*-*-solaris*)
|
||||
platform_win32=no
|
||||
CPPFLAGS="$CPPFLAGS -DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS -D_REENTRANT"
|
||||
AC_DEFINE(NEED_LINK_UNLINK)
|
||||
libmono_cflags="-D_REENTRANT"
|
||||
;;
|
||||
*-*-darwin*)
|
||||
platform_win32=no
|
||||
CPPFLAGS="$CPPFLAGS -no-cpp-precomp -D_THREAD_SAFE"
|
||||
libmono_cflags="-D_THREAD_SAFE"
|
||||
LDFLAGS="$LDFLAGS -pthread"
|
||||
AC_DEFINE(NEED_LINK_UNLINK)
|
||||
AC_DEFINE(PTHREAD_POINTER_ID)
|
||||
libdl=
|
||||
;;
|
||||
*)
|
||||
AC_MSG_WARN([*** Please add $host to configure.in checks!])
|
||||
@@ -369,24 +387,24 @@ if test x$platform_win32 = xno; then
|
||||
dnl ********************************
|
||||
dnl *** Checks for timezone stuff **
|
||||
dnl ********************************
|
||||
AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone,
|
||||
AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
|
||||
AC_TRY_COMPILE([
|
||||
#include <time.h>
|
||||
], [
|
||||
timezone = 1;
|
||||
], ac_cv_var_timezone=yes, ac_cv_var_timezone=no))
|
||||
if test $ac_cv_var_timezone = yes; then
|
||||
AC_DEFINE(HAVE_TIMEZONE)
|
||||
], [
|
||||
struct tm tm;
|
||||
tm.tm_gmtoff = 1;
|
||||
], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))
|
||||
if test $ac_cv_struct_tm_gmtoff = yes; then
|
||||
AC_DEFINE(HAVE_TM_GMTOFF)
|
||||
else
|
||||
AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
|
||||
AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone,
|
||||
AC_TRY_COMPILE([
|
||||
#include <time.h>
|
||||
], [
|
||||
struct tm tm;
|
||||
tm.tm_gmtoff = 1;
|
||||
], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))
|
||||
if test $ac_cv_struct_tm_gmtoff = yes; then
|
||||
AC_DEFINE(HAVE_TM_GMTOFF)
|
||||
], [
|
||||
timezone = 1;
|
||||
], ac_cv_var_timezone=yes, ac_cv_var_timezone=no))
|
||||
if test $ac_cv_var_timezone = yes; then
|
||||
AC_DEFINE(HAVE_TIMEZONE)
|
||||
else
|
||||
AC_ERROR(unable to find a way to determine timezone)
|
||||
fi
|
||||
@@ -478,7 +496,7 @@ i*86-*-*) TARGET=X86; arch_target=x86;;
|
||||
sparc*-*-*) TARGET=SPARC; arch_target=sparc; ACCESS_UNALIGNED="no";;
|
||||
#alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA; ACCESS_UNALIGNED="no";;
|
||||
#m68k-*-linux*) TARGET=M68K;;
|
||||
macppc-*-openbsd* | powerpc-*-linux* | powerpc-*-openbsd* | powerpc-*-sysv*) TARGET=POWERPC; arch_target=ppc;;
|
||||
macppc-*-openbsd* | powerpc-*-linux* | powerpc-*-openbsd* | powerpc-*-sysv* | powerpc-*-darwin*) TARGET=POWERPC; arch_target=ppc;;
|
||||
arm-*-linux-* | armv4l-*-linux-*) TARGET=ARM; arch_target=arm; ACCESS_UNALIGNED="no";;
|
||||
s390-*-linux*) TARGET=S390; arch_target=s390; ACCESS_UNALIGNED="no";;
|
||||
esac
|
||||
|
||||
+21
-6
@@ -5,22 +5,34 @@
|
||||
<configSections>
|
||||
<section name="appSettings" type="System.Configuration.NameValueFileSectionHandler, System" />
|
||||
|
||||
<section name="system.diagnostics" type="System.Diagnostics.DiagnosticsConfigurationHandler, System" />
|
||||
<sectionGroup name="system.web">
|
||||
<section name="httpHandlers" type="System.Web.Configuration.HttpHandlersSectionHandler, System.Web" />
|
||||
<section name="httpModules" type="System.Web.Configuration.HttpModulesConfigurationHandler, System.Web" />
|
||||
<section name="machineKey" type="System.Web.Configuration.MachineKeyConfigHandler, System.Web" />
|
||||
<section name="authentication" type="System.Web.Configuration.AuthenticationConfigHandler, System.Web" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<system.web>
|
||||
<httpHandlers>
|
||||
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory" />
|
||||
<add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler" />
|
||||
<add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler" />
|
||||
<add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler" />
|
||||
<add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler" />
|
||||
<add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler" />
|
||||
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web" />
|
||||
<add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler, System.Web" />
|
||||
<add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler, System.Web" />
|
||||
<add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler, System.Web" />
|
||||
<add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler, System.Web" />
|
||||
<add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web" />
|
||||
</httpHandlers>
|
||||
<httpModules>
|
||||
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web" />
|
||||
</httpModules>
|
||||
<authentication mode="Forms">
|
||||
<forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
|
||||
<credentials passwordFormat="Clear">
|
||||
<!--<user name="gonzalo" password="gonz"/>-->
|
||||
</credentials>
|
||||
</forms>
|
||||
</authentication>
|
||||
<machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
|
||||
</system.web>
|
||||
|
||||
<appSettings>
|
||||
@@ -28,5 +40,8 @@
|
||||
<!--<remove key="a key defined higher in the hierarchy" /> -->
|
||||
<!--<clear/> Removes all defined settings -->
|
||||
</appSettings>
|
||||
<system.diagnostics>
|
||||
<trace autoflush="false" indentsize="4" />
|
||||
</system.diagnostics>
|
||||
</configuration>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 448 B |
+127
-165
@@ -1,74 +1,91 @@
|
||||
* ADO.NET
|
||||
|
||||
The coordinator for the ADO.NET implementation is
|
||||
<a href="mailto:[email protected]">Rodrigo Moya</a>,
|
||||
with the collaboration of:
|
||||
<a href="mailto:[email protected]">Daniel Morgan</a>,
|
||||
<a href="mailto:[email protected]">Tim Coleman</a>,
|
||||
<a href="mailto:[email protected]">Brian Ritchie</a>, and
|
||||
<a href="mailto:[email protected]">Vladimir Vukicevic</a>.
|
||||
<p>Mono's ADO.NET Developers:
|
||||
<ul>
|
||||
<li>rodrigo -AT- ximian.comNOSPAM - <b>Rodrigo Moya</b> - coordinator
|
||||
for the ADO.NET implementation and works on the OLE DB provider</li>
|
||||
<li>danmorg -AT- sc.rr.comNOSPAM - <b>Daniel Morgan</b> - works on
|
||||
the MySQL, PostgreSQL, and Oracle providers</li>
|
||||
<li>tim -AT- timcoleman.comNOSPAM - <b>Tim Coleman</b> - works on
|
||||
the Microsoft SQL Server, Sybase, and TDS providers</li>
|
||||
<li>brianlritchie -AT- hotmail.comNOSPAM - <b>Brian Ritchie</b> - works on
|
||||
the ODBC provider and the ProviderFactory</li>
|
||||
<li>vladimir -AT- pobox.comNOSPAM - <b>Vladimir Vukicevic</b> - works on
|
||||
the SQL Lite provider</li>
|
||||
<li>cleared -AT- rogers.comNOSPAM - <b>Christopher Bockner</b> - works on
|
||||
the IBM DB2 provider</li>
|
||||
<li>vi64pa -AT- koti.soon.fiNOSPAM - <b>Ville Palo</b> - works on XML stuff in System.Data
|
||||
including DataSet, XmlDataDocument, and has done lots of testing</li>
|
||||
</ul>
|
||||
|
||||
|
||||
* Action plan
|
||||
|
||||
<p>The current plan to implement ADO.NET is as follows:
|
||||
|
||||
<ul>
|
||||
<li>Either create ADO.NET providers or modify pre-exiting ADO.NET providers to
|
||||
work with Mono
|
||||
work with Mono</li>
|
||||
|
||||
<ul>
|
||||
<li>Create ADO.NET Providers
|
||||
|
||||
<ul>
|
||||
<li><a href="http://www.go-mono.com/mysql.html">MySQL</a>
|
||||
<li><a href="http://www.go-mono.com/odbc.html">ODBC</a>
|
||||
<li><a href="http://www.go-mono.com/oledb.html">OLE DB</a>
|
||||
<li><a href="http://www.go-mono.com/postgresql.html">PostgreSQL</a>
|
||||
<li><a href="http://www.go-mono.com/sqlclient.html">Microsoft SQL Server</a>
|
||||
<li><a href="http://www.go-mono.com/sqlite.html">SQL Lite</a>
|
||||
<li><a href="http://www.go-mono.com/sybase.html">Sybase</a>
|
||||
<li><a href="http://www.go-mono.com/tdsclient.html">TDS Generic</a>
|
||||
<li><a href="http://www.go-mono.com/ibmdb2.html">IBM DB2 Universal Database</a></li>
|
||||
<li><a href="http://www.go-mono.com/mysql.html">MySQL</a></li>
|
||||
<li><a href="http://www.go-mono.com/odbc.html">ODBC</a></li>
|
||||
<li><a href="http://www.go-mono.com/oracle.html">Oracle</a></li>
|
||||
<li><a href="http://www.go-mono.com/oledb.html">OLE DB</a></li>
|
||||
<li><a href="http://www.go-mono.com/postgresql.html">PostgreSQL</a></li>
|
||||
<li><a href="http://www.go-mono.com/sqlclient.html">Microsoft SQL Server</a></li>
|
||||
<li><a href="http://www.go-mono.com/sqlite.html">SQL Lite</a></li>
|
||||
<li><a href="http://www.go-mono.com/sybase.html">Sybase</a></li>
|
||||
<li><a href="http://www.go-mono.com/tdsclient.html">TDS Generic</a></li>
|
||||
<li>Providers which we do not have, but we would like to have. Currently,
|
||||
some of these databases are supported via the ODBC or OLEDB providers.
|
||||
some of these databases are supported via the ODBC or OLEDB providers.</li>
|
||||
<ul>
|
||||
<li><a href="http://www-3.ibm.com/software/data/db2/">IBM DB2 Universal Database</a>
|
||||
<li>miniSQL
|
||||
<li><a href="http://www.oracle.com/">Oracle</a> - could be done by creating C# bindings to OCI (Oracle C Call Level Interface)
|
||||
<li>BerkeleyDB (Sleepycat)
|
||||
<li><a href="http://www.sapdb.org/">SapDB</a>
|
||||
<li>Microsoft Access - could be done by creating C# bindings to <a href="http://mdbtools.sourceforge.net">MDB Tools</a>
|
||||
<li>dbase or xbase type database files
|
||||
<li>Others, of course, are welcomed...
|
||||
|
||||
<li><a href="http://msdn.microsoft.com/library/en-us/dnsql2k/html/sqlxml_intromanagedclasses.asp?frame=true">Managed Classes for SqlXml</a> which is
|
||||
a .NET data provider for retrieving XML data from a Microsoft SQL Server 2000 database. The System.Data.SqlClient provider
|
||||
in Mono can be used as a starting point at mcs/class/System.Data/System.Data.SqlClient.</li>
|
||||
<li><a href="http://www.hughes.com.au/">miniSQL</a></li>
|
||||
<li><a href="http://www.sleepycat.com/">BerkeleyDB (Sleepycat)</a></li>
|
||||
<li><a href="http://www.sapdb.org/">SapDB</a></li>
|
||||
<li>Microsoft Access - could be done by creating C# bindings to <a href="http://mdbtools.sourceforge.net">MDB Tools</a></li>
|
||||
<li>dbase or xbase type database files</li>
|
||||
<li>Others are welcome</li>
|
||||
</ul>
|
||||
</ul>
|
||||
</ul></li>
|
||||
<br>
|
||||
<li>Modify Pre-existing ADO.NET Providers to work with Mono. This may
|
||||
require fixing or implementing areas of Mono too.
|
||||
<ul>
|
||||
<li><a href="http://www.go-mono.com/firebird.html">Firebird Interbase</a>
|
||||
<li><a href="http://gborg.postgresql.org/project/npgsql/projdisplay.php">Npgsql</a> a PostgreSQL provider
|
||||
written in 100% C#
|
||||
<li><a href="http://sourceforge.net/projects/mysqldrivercs/">MySQLDriverCS</a> is a MySQL provider written in C#
|
||||
<li><a href="http://sourceforge.net/projects/mysqlnet/">MySQLNet</a> is a MySQL Manager provider written in C#
|
||||
<li><a href="http://www.go-mono.com/firebird.html">Firebird Interbase</a></li>
|
||||
<li><a href="http://gborg.postgresql.org/project/npgsql/projdisplay.php">Npgsql</a> is a
|
||||
PostgreSQL Managed data provider written
|
||||
in 100% C#, does not require a client library, and works on Mono</li>
|
||||
<li><a href="http://sourceforge.net/projects/mysqlnet/">MySQLNet</a> is a
|
||||
MySQL Manager data provider written in 100% C#, does not
|
||||
require a client library, and works on Mono</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<li>Create Tools for Configuration, Testing, and Entering SQL Queries
|
||||
<ul>
|
||||
<li><b>SQL# CLI - a command-line tool</b> to execute SQL commands,
|
||||
<li><b>SQL# CLI - a command-line tool</b> written in C# to
|
||||
execute SQL commands,
|
||||
test connection strings, and connect to various ADO.NET
|
||||
providers in Mono. The SQL# CLI can be found in
|
||||
mcs/tools/SqlSharp/SqlSharpCli.cs
|
||||
It is written in C# and runs on Mono and .NET
|
||||
|
||||
<li><p><b>SQL# GUI - a GUI tool</b> to execute SQL commands.
|
||||
mcs/tools/SqlSharp/SqlSharpCli.cs</li>
|
||||
|
||||
<li><p><b>SQL# GUI - a GUI tool</b> written in C# to
|
||||
execute SQL commands.
|
||||
Currently, there is SQL# For GTK# which
|
||||
can be found at
|
||||
mcs/tools/SqlSharp/gui/gtk-sharp. It has a SQL editor with
|
||||
syntax hi lighting of SQL keywords
|
||||
|
||||
mcs/tools/SqlSharp/gui/gtk-sharp
|
||||
It has a SQL editor with
|
||||
syntax hi lighting of SQL keywords. This will be
|
||||
moving to its own cvs modeul sqlsharpgtk.</li>
|
||||
|
||||
<li><b>Configuration Command-Line and GUI Tools for ADO.NET</b>.
|
||||
These tools have not been started. The tools would be written in
|
||||
C# and run on Mono. The
|
||||
@@ -76,13 +93,13 @@
|
||||
<ul>
|
||||
<li>setup DSNs for the ODBC and OLE-DB
|
||||
providers and configurations for
|
||||
their underlying libraries (unixODBC and libgda)
|
||||
their underlying libraries (unixODBC and libgda)</li>
|
||||
<li>setup configurations for the Mono.Data.ProviderFactory
|
||||
that Brian Ritchie created
|
||||
that Brian Ritchie created</li>
|
||||
<li>setup native database client library configurations too, such as,
|
||||
freetds.conf for Microsoft SQL Server and Sybase
|
||||
freetds.conf for Microsoft SQL Server and Sybase</li>
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
@@ -91,16 +108,69 @@
|
||||
<p>Variouls ADO.NET Providers have been created: PostgreSQL, MySQL, Sybase, SQL Lite,
|
||||
Microsoft SQL Server, OLE DB, ODBC, and TDS Generic. See their respective web page for
|
||||
more information.
|
||||
|
||||
<p>Constraints need lots of work
|
||||
|
||||
<p>TypeDataSetGenerator needs to be stubbed and implemented.
|
||||
|
||||
<p><b>DataSet, DataAdaptor, DataTable, DataRelation, DataRow, DataColumn,
|
||||
DataColumnCollection, DataRowCollection, and others</b> need more work. There are
|
||||
many classes that are just stubs and need to be implemented.
|
||||
|
||||
<p><b>XML support in System.Data</b> needs work. This involves working on
|
||||
the classes: DataSet, XmlDataDocument, and the method ExecuteXmlReader() that
|
||||
exists in a provider's class that implements IDbCommand, and others.
|
||||
Stuart Caborn has started the XML support in a DataSet. Tim Coleman started
|
||||
XML support in the ExecuteXmlReader() in a SqlCommand. Ville Palo has been
|
||||
heavily modifying DataSet, XmlDataDocument, and other classes for reading
|
||||
and writing XML.
|
||||
|
||||
<p><b>ADO.NET Provider Factory</b> has been started by Brian Ritchie. The
|
||||
Provider Factory is way to dynamically create
|
||||
connections, commands, parameters, and data adapters based on configuration information. The
|
||||
provider factory also provides utility functions needed by a lot of
|
||||
providers but are not exposed via the provider. The ProviderFactory
|
||||
is found at mcs/class/Mono.Data and includes a test named test.cs for it in
|
||||
mcs/class/Mono.Data/Test. Also, take a look at the sample .config file for the
|
||||
test.exe application named test.exe.config. The .config file is automatically
|
||||
read when you use the Mono.Data.ProviderFactory or Mono.Data.DataTools.
|
||||
|
||||
<p><b>Integration with ASP.NET</b> has not been started, such as, data binding
|
||||
to a System.Web.UI.WebControls.DataGrid. This may involve implementing many classes
|
||||
in System.Web and System.Data. Gonzalo, Gaurav, Leen, Patrik, Duncan, and others are
|
||||
working very hard on the ASP.NET support. If you want to help,
|
||||
contact <a href="mailto:[email protected]">Gonzalo Paniagua Javier</a>
|
||||
in System.Web and System.Data. If you want to help,
|
||||
contact Gonzalo Paniagua Javier. Here is information about using ADO.NET in ASP.NET:
|
||||
<ul>
|
||||
<li>Take a look at xsp in cvs and look at the examples in test: dbpage1.aspx
|
||||
and dbpage2.aspx:
|
||||
<ul>
|
||||
<li>Notice that the namespace System.Data is imported via <b>import</b></li>
|
||||
<li>A NameValueCollection is gotten using ConfigurationSettings.AppSetings. These
|
||||
settings are gotten from the file server.exe.config which is a XML file. The XML
|
||||
file has a section appSettings. In the appSettings section, you have keys
|
||||
for DBProviderAssembly, DBConnectionType, and DBConnectionString.
|
||||
<ul>
|
||||
<li><b>DBProviderAssembly</b> is the assembly of the ADO.NET provider.
|
||||
For example:
|
||||
"Mono.Data.PostgreSqlClient"</li>
|
||||
<li><b>DBConnectionType</b> is the System.Type of the class that
|
||||
implements System.Data.IDbConnection that is found
|
||||
in the DBProviderAssembly.
|
||||
For example:
|
||||
"Mono.Data.PostgreSqlClient.PgConnection"</li>
|
||||
<li><b>DBConnectionString</b> is the ConnectionString to set to the
|
||||
IDbConnection object to use in opening a connection to a data source.
|
||||
For Example:
|
||||
"hostaddr=127.0.0.1;user=monotest;password=monotest;dbname=monotest"</li>
|
||||
</ul>
|
||||
<li>The function GetConnectionData() gets the database provider assembly, connection type,
|
||||
and connection string parameters if they exist; otherwise, it uses default values. This is
|
||||
done during the loading of the web page.</li>
|
||||
<li>With the connection parameters, the assembly is loaded, the connection type is verified that
|
||||
it implements IDbConnection and an instance of the class can be created, creates a instance
|
||||
of the class, sets the connection string, and opens the connection.</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p><b>Integration with Windows.Forms</b> has not been started, such as, data binding
|
||||
to a System.Windows.Forms.DataGrid. This may involve implementing many classes
|
||||
@@ -116,123 +186,6 @@
|
||||
how this can be done is appreciated. Adam Treat would be the best
|
||||
person to ask about QT#.
|
||||
|
||||
<p><b>Integration with GDA#</b> has not been started. It is
|
||||
included in the GTK# project, GDA#
|
||||
does not require GTK+ nor GNOME. GDA# is C# bindings
|
||||
to <a href="http://www.gnome-db.org/">GDA</a> which
|
||||
is an ADO/OLE-DB like layer for Linux provided as a C library. Classes
|
||||
that would bind data between the ADO.NET data model and the GDA data model will
|
||||
need to be created. Rodrigo Moya is the best person to contact about this.
|
||||
|
||||
<p><b>Integration with GnomeDb#</b> has not been started. It is
|
||||
included in the GTK# project and uses GDA# for its data access model.
|
||||
Creating classes to bind data between the data model in ADO.NET
|
||||
and the data model that exists in GDA# and GnomeDb# will
|
||||
need to be started. GnomeDb# is C# bindings to
|
||||
<a href="http://www.gnome-db.org/">GnomeDb</a> which uses
|
||||
<a href="http://www.gnome-db.org/">GDA</a> as its data access layer. GnomeDb
|
||||
is a C API in a library that contains
|
||||
gtk+ widgets (GUI controls) for data access. There are some nifty widgets
|
||||
(GUI controls) that can be used, such as, GnomeDbGrid, GnomeDbBrowswer,
|
||||
GnomeDbSqlEditor, GnomeDbList, GnomeDbLogin, GnomeDbReportEditor, GnomeDbTableEditor,
|
||||
GnomeDbCombo, and GnomeDbForm. Rodrigo Moya is the best person to contact.
|
||||
|
||||
<p><b>XML support in System.Data</b> needs work. This involves working on
|
||||
the classes: DataSet, XmlDataDocument, and the method ExecuteXmlReader() that
|
||||
exists in a provider's class that implements IDbCommand, and others.
|
||||
Stuart Caborn has started the XML support in a DataSet. Tim Coleman started
|
||||
XML support in the ExecuteXmlReader() in a SqlCommand.
|
||||
|
||||
<p><b>ADO.NET Provider Factory</b> has been started by Brian Ritchie. The
|
||||
Provider Factory is used to dynamically create data provider
|
||||
connections and data adapters based on configuration information. This
|
||||
provider factory can also provide utility functions needed by a lot of
|
||||
providers but are not exposed via the provider.
|
||||
|
||||
<p><b>ADO.NET Multiplexor Provider</b> needs to be created. It can use the
|
||||
ADO.NET Provider Factory to create its connections and adapters, but the
|
||||
Multiplexor Provider is a Generic Provider that internally uses an existing
|
||||
provider based on configuration options. This is not
|
||||
part of Microsoft .NET, but it needs to be able to run on Microsoft .NET
|
||||
and Mono. This provider can be a generic provider, much like the ODBC.NET and
|
||||
OLEDB.NET providers are, but be written in 100% C# and be configurable via
|
||||
a configuration file. This provider will multiplex to other providers
|
||||
that exist. If one does not exist for a given DBMS,
|
||||
default to the ODBC or OLEDB .NET provider.
|
||||
|
||||
<p>According to Gonzalo, this is how the configuration could be implemented for
|
||||
the Provider Factory and Multiplexor Provider.
|
||||
|
||||
<p>After some work done in System.Configuration, you can now do something
|
||||
like:
|
||||
|
||||
<p>
|
||||
<pre>
|
||||
// Get an instance of the multiplexor from machine.config file
|
||||
// Can be overriden in the application config file
|
||||
object o = ConnectionSettings.GetConfig
|
||||
("mono.data/multiplexor");
|
||||
if (o == null)
|
||||
--- error
|
||||
|
||||
Multiplexor mp = (Multiplexor) o;
|
||||
|
||||
// may be a string [] argument can help passing arguments
|
||||
IDbConnection cnc = mp.CreateConnection (providerName);
|
||||
</pre>
|
||||
|
||||
<p>and in the machine.config file:
|
||||
|
||||
<pre>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<section name="mono.data"
|
||||
type="Mono.Data.MultiplexorSectionHandler,Mono.Data"/>
|
||||
....
|
||||
</configSections>
|
||||
...
|
||||
<sectionGroup name="mono.data">
|
||||
<multiplexor>
|
||||
<add provider="PostgreSQL"
|
||||
type="Mono.Data.PostgreSQLClient,Mono.Data"
|
||||
validate="false"
|
||||
parameters="USER=xxx;HOST=127.0.0.1;DBNAME=xxx"/>
|
||||
</multiplexor>
|
||||
</sectionGroup>
|
||||
</configuration>
|
||||
</pre>
|
||||
|
||||
<p>validate="false" tells MultiplexorSectionHandler not to load the Type
|
||||
until an instance is required. You can add more attributes or whatever
|
||||
inside <multiplexor> as long as MultiplexorSectionHandler parses it.
|
||||
|
||||
<pre>
|
||||
public class MultiplexorSectionHandler :
|
||||
IConfigurationSectionHandler
|
||||
{
|
||||
public object Create (object parent,
|
||||
object configContext,
|
||||
XmlNode section)
|
||||
{
|
||||
Multiplexor mp;
|
||||
// Here you get the ChildNodes and
|
||||
// set up a Multiplexor
|
||||
// instance that will hold the information
|
||||
// needed to create
|
||||
// instances of each provider. Only one
|
||||
// instance will be
|
||||
// created by the config system.
|
||||
return mp;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
<p>This way, if our providers works with MS, the user can test them in both
|
||||
MS and mono by just adding a few lines to machine.config (i still have
|
||||
to upload a default machine.config file for mono). And this is the .NET
|
||||
way of doing it (of course, if you prefer, you can use the other config
|
||||
file. I just wanted to make people aware of this feature that now works
|
||||
on mono).
|
||||
|
||||
<p><b>Building System.Data</b>
|
||||
|
||||
<p>The System.Data.dll gets built with the rest of the class library.
|
||||
@@ -276,3 +229,12 @@ IConfigurationSectionHandler
|
||||
</pre>
|
||||
</ul>
|
||||
|
||||
* Testing
|
||||
|
||||
<ul>
|
||||
<li>Testing connection-oriented classes are done via the provider specific tests
|
||||
|
||||
<li><a href="http://www.go-mono.com/testing.html">Testing non-connection classes</a> are
|
||||
done via mono's modified version of NUnit.</li>
|
||||
|
||||
</ul>
|
||||
+33
-56
@@ -9,8 +9,8 @@
|
||||
|
||||
There is work underway for both systems. The Web Forms
|
||||
support is more advanced at this point, and various ".aspx"
|
||||
programs can be run using the Mono runtime and the XSP page
|
||||
parser.
|
||||
programs can be run using the Mono runtime (embedded into
|
||||
either the XSP server or the mod_mono Apache module).
|
||||
|
||||
We are now working bug fixing and adding missing features
|
||||
after making the whole pipeline compatible with MS.
|
||||
@@ -21,41 +21,6 @@
|
||||
Web Services support. Work for the supporting class libraries
|
||||
just started recently.
|
||||
|
||||
* Web Forms: The pieces
|
||||
|
||||
There are a couple of components to the puzzle:
|
||||
|
||||
<ul>
|
||||
* .aspx page parser (converts .aspx to C# code).
|
||||
|
||||
* System.Web.HttpRuntime support.
|
||||
|
||||
* Web controls (System.Web.UI.HtmlControls and
|
||||
System.Web.UI.WebControls).
|
||||
|
||||
* Underlying infrastructure for the controls (System.Web.UI).
|
||||
|
||||
* HttpRuntime.ProcessRequest is the core of the ASP.NET
|
||||
implementation.
|
||||
</ul>
|
||||
|
||||
|
||||
Gonzalo has been working on an ASP.NET parser that takes .aspx
|
||||
files and generated the code required to run them (the code lives in
|
||||
module `xsp' along with a little web server for testing).
|
||||
|
||||
Most of the runtime support was written by Patrik Torstensson
|
||||
(now at Intel). This was interesting, because in order to implement
|
||||
some of its features, Patrik had to go into the runtime/JIT engine and
|
||||
he spent a few weeks doing work there.
|
||||
|
||||
The classes for running ASP.NET are being actively written.
|
||||
Gaurav, Leen and Patrik worked in the core of the classes
|
||||
required to run ASP.NET web application as well as a small
|
||||
embeddable web server.
|
||||
|
||||
Duncan got our System.Web assembly to compile.
|
||||
|
||||
** HttpRuntime
|
||||
|
||||
Patrik has authored most of the HttpRuntime support (both on
|
||||
@@ -104,29 +69,41 @@
|
||||
over the web probably do not want to use direct ASP.NET but a
|
||||
wrapper around it.
|
||||
|
||||
** Roadmap
|
||||
* Web Forms: The pieces (historical)
|
||||
|
||||
1. The Parser.
|
||||
There are a couple of components to the puzzle:
|
||||
|
||||
2. Get the parser to generate output compatible with ASP.NET.
|
||||
|
||||
3. Run the sample output with the real Microsoft runtime
|
||||
but using our generated page.
|
||||
|
||||
4. Run the sample with our classes with the .NET runtime.
|
||||
|
||||
5. Run the samples with our classes with the our runtime (without
|
||||
using HttpRuntime).
|
||||
|
||||
6. Finish HttpRuntime.
|
||||
<ul>
|
||||
* .aspx page parser (converts .aspx to C# code).
|
||||
|
||||
7. Running our sample code with our classes with our runtime.
|
||||
|
||||
8. Debug and add missing features.
|
||||
|
||||
We are in step 8. Among the missing features: server side includes,
|
||||
better caching, some configuration stuff, more validators...
|
||||
* System.Web.HttpRuntime support.
|
||||
|
||||
* Web controls (System.Web.UI.HtmlControls and
|
||||
System.Web.UI.WebControls).
|
||||
|
||||
* Underlying infrastructure for the controls (System.Web.UI).
|
||||
|
||||
* HttpRuntime.ProcessRequest is the core of the ASP.NET
|
||||
implementation.
|
||||
</ul>
|
||||
|
||||
|
||||
Gonzalo has been working on an ASP.NET parser that takes .aspx
|
||||
files and generated the code required to run them (the code lives in
|
||||
module `xsp' along with a little web server for testing).
|
||||
|
||||
Most of the runtime support was written by Patrik Torstensson
|
||||
(now at Intel). This was interesting, because in order to implement
|
||||
some of its features, Patrik had to go into the runtime/JIT engine and
|
||||
he spent a few weeks doing work there.
|
||||
|
||||
The classes for running ASP.NET are being actively written.
|
||||
Gaurav, Leen and Patrik worked in the core of the classes
|
||||
required to run ASP.NET web application as well as a small
|
||||
embeddable web server.
|
||||
|
||||
Duncan got our System.Web assembly to compile.
|
||||
|
||||
** How to Help
|
||||
|
||||
Testing and fixing HtmlControls, WebControls and validators is an
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
Support runtime for Visual Basic applications
|
||||
|
||||
<li><a
|
||||
href="http://www.go-mono.com/class-status-Windows.Forms.html">Windows.Forms</a>:
|
||||
href="http://www.go-mono.com/class-status-System.Windows.Forms.html">Windows.Forms</a>:
|
||||
there is also a <a
|
||||
href="http://lists.ximian.com/mailman/listinfo/mono-winforms-list">mailing
|
||||
list available</a>
|
||||
|
||||
+275
@@ -0,0 +1,275 @@
|
||||
* Cryptography
|
||||
|
||||
In the .NET framework cryptography can be found under a number of
|
||||
namespaces in several assemblies.
|
||||
|
||||
** Assembly: corlib
|
||||
|
||||
*** Namespace: <b>System.Security.Cryptography</b>
|
||||
|
||||
Thanks to the work of many people this namespace is almost complete.
|
||||
|
||||
**** Status
|
||||
<ul>
|
||||
* Every classes are present.
|
||||
|
||||
* Most classes have their unit tests. Some tests like <code>
|
||||
SymmetricAlgorithmTest</code> are generated by an external
|
||||
tool.
|
||||
</ul>
|
||||
|
||||
**** TODO
|
||||
<ul>
|
||||
* Support for adding/modifying algorithms and OID using the
|
||||
<code>machine.config</code> configuration file (in progress).
|
||||
|
||||
* RNGCryptoServiceProvider is currently only working on Linux.
|
||||
The current implementation reside in Mono's runtime and use
|
||||
the <code>/dev/[u]random</code> device (which do not exists
|
||||
under Windows). A Windows alternative is in the work...
|
||||
|
||||
* Keypair persistance for RSA and DSA. This persistance must
|
||||
somehow be linked with X509 certificate stores (in planning).
|
||||
|
||||
* <code>PasswordDeriveBytes</code> is currently limited to
|
||||
generating keys with the maximum length equals to the hash
|
||||
output (as specified in PKCS #5). However the framework
|
||||
implementation allows for longer keys to be generated. Also
|
||||
the algorithms used by CryptDeriveKey (used by Windows
|
||||
applications) are unknown.
|
||||
|
||||
* Analyse the current coverage of the unit tests on the
|
||||
cryptographic classes and complete the unit tests.
|
||||
|
||||
* Optimizations (performance) on most class are possible. Some
|
||||
have been done using the Community Edition of BoundChecker
|
||||
(a free VisualStudio addon) - recommanded!
|
||||
</ul>
|
||||
|
||||
**** Notes
|
||||
<ul>
|
||||
* All cryptographic algorithms are entirely managed, including
|
||||
classes named <code>*CryptoServiceProvider</code>, with the
|
||||
exception of <code>RNGCryptoServiceProvider</code> (which
|
||||
resides in the runtime).
|
||||
</ul>
|
||||
|
||||
|
||||
*** Namespace: <b>System.Security.Cryptography.X509Certificates</b>
|
||||
|
||||
**** Status
|
||||
<ul>
|
||||
* X.509 certificates are parsed using 100% managed code.
|
||||
|
||||
* Software Publisher Certificates (SPC) used by Authenticode
|
||||
(tm) to sign assemblies are supported (extraction from PE
|
||||
files) but <b>not</b> validated.
|
||||
|
||||
* Tests are generated from a set of existing certificates
|
||||
(about a dozen) each having different properties. Another
|
||||
set of certificates (more than 300) are used for a more
|
||||
complete test (but isn't part of the test suite for size
|
||||
and time consideration).
|
||||
</ul>
|
||||
|
||||
**** TODO
|
||||
<ul>
|
||||
* Authenticode(tm) support is incomplete. We can extract the
|
||||
certificates from PE files but cannot validate the signature
|
||||
nor the certificate chain (and we're still missing some trust
|
||||
anchors).
|
||||
|
||||
* Integration with CryptoAPI (on Windows) isn't possible as
|
||||
long as the <code>X509Certificate(IntPtr)</code> constructor
|
||||
isn't completed.
|
||||
</ul>
|
||||
|
||||
**** Notes
|
||||
<ul>
|
||||
* <b>There's no validation of the certificates</b> done in this
|
||||
class (this isn't a restriction of Mono!). This means that
|
||||
certificate signatures and validity dates are <b>never</b>
|
||||
checked!
|
||||
|
||||
* The newer X509Certificate class included in Microsoft's Web
|
||||
Service Enhancement (WSE) is a little better (as it includes
|
||||
CryptoAPI's validation) when <code>IsCurrent</code> is called.
|
||||
|
||||
* Microsoft implementation of <code>X509Certificate</code> is
|
||||
done by using CryptoAPI. From the exceptions thrown
|
||||
Authenticode(tm) support is done via COM.
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
** Assembly: System.Security
|
||||
|
||||
*** Namespace: <b>System.Security.Cryptography.Xml</b>
|
||||
|
||||
This namespace implements the <a href="http://www.w3.org/TR/xmldsig-core/">
|
||||
XML Digital Signature</a> specification from
|
||||
<a href="http://www.w3.org/">W3C</a>.
|
||||
|
||||
**** Status
|
||||
<ul>
|
||||
* All classes are present but some are only stubbed.
|
||||
|
||||
* Most classes have their unit tests.
|
||||
|
||||
* This assembly is present in CVS but only available when
|
||||
building using NAnt (i.e. makefile are missing).
|
||||
</ul>
|
||||
|
||||
**** TODO
|
||||
<ul>
|
||||
* All the transforms needs to be done. But this requires far
|
||||
more XML knowledge than crypto. Note: Most tests runs because
|
||||
the feeded XML is pre-c14n (by hand in the code) before
|
||||
signing (not because the transforms works).
|
||||
|
||||
* Makefile for building under non-Windows operating systems.
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
** Assembly: Mono.Security.Win32
|
||||
|
||||
This assembly goal is to provide maximum compatibility with CryptoAPI
|
||||
to application running with Mono's runtime on the Windows operating
|
||||
system.
|
||||
|
||||
<b>This assembly should NEVER be used directly by any application</b>.
|
||||
The classes should only be used by modifying the <code>machine.config
|
||||
</code> configuration file (and then only if this increased
|
||||
compatibility is required by an application).
|
||||
|
||||
*** Namespace: Mono.Security.Cryptography
|
||||
|
||||
**** Status
|
||||
<ul>
|
||||
* A RNGCryptoServiceProvider built on top of CryptoAPI.
|
||||
|
||||
* Not (yet) commited in CVS - i'm still playing with the base
|
||||
classes so I can easily add other CryptoAPI-based algorithms.
|
||||
</ul>
|
||||
|
||||
**** TODO
|
||||
<ul>
|
||||
* Unmanaged versions of hash algorithms (SHA1 and MD5).
|
||||
* Unmanaged versions of symmetric encryption algorithms
|
||||
(like DES, TripleDES, RC2 and others present in CryptoAPI).
|
||||
* Unmanaged versions of asymmetric algorithms (like DSA and
|
||||
RSA) which persist their keypair into the specified CSP.
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
** Assembly: Microsoft.Web.Services
|
||||
|
||||
Microsoft Web Service Enhancement (WSE), known as Web Service
|
||||
Development Kit (WSDK) in it's beta days, is an add-on the .NET
|
||||
framework that implements WS-Security (and other WS-* specifications).
|
||||
It also includes improved support for XML Signature (replacing and/or
|
||||
extending <code>System.Security.Cryptography.Xml</code>) and X509
|
||||
certificates.
|
||||
|
||||
Note: WSE is distributed as an add-on because the WS-Security
|
||||
specification isn't yet completed by
|
||||
<a href="http://www.oasis-open.org/committees/wss/">OASIS</a>.
|
||||
|
||||
<b>There are some licensing issues to consider before stating to
|
||||
implement WS-Security. All contributors must sign an agreement with
|
||||
Microsoft before commiting anything related to WS-Security into CVS.
|
||||
</b>
|
||||
|
||||
*** Namespace: Microsoft.Web.Services.Security
|
||||
|
||||
**** Status
|
||||
<ul>
|
||||
* Nothing (yet) commited in CVS.
|
||||
</ul>
|
||||
|
||||
*** Namespace: Microsoft.Web.Services.Security.X509
|
||||
|
||||
**** Status
|
||||
<ul>
|
||||
* Nothing (yet) commited in CVS.
|
||||
</ul>
|
||||
|
||||
**** TODO
|
||||
<ul>
|
||||
* We need to define certificate stores (for both users and
|
||||
machines). These sames stores must be linked with asymmetric
|
||||
keypairs. This could also be used to store the SPC roots.
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
** Other stuff
|
||||
|
||||
There are other, not so visible, uses of cryptography both inside and
|
||||
outside the class library - such as:
|
||||
|
||||
<ul>
|
||||
* SSL/TLS for secure communication (investigation under way).
|
||||
|
||||
* Assembly signing (and verification) using StrongNames.
|
||||
|
||||
* Assembly signing (and verification) using Authenticode(tm).
|
||||
</ul>
|
||||
|
||||
|
||||
*** Tools
|
||||
|
||||
There are many tools in the .NET framework that indirectly interacts
|
||||
with some cryptographic classes. Mono will eventually need these tools.
|
||||
|
||||
**** Status
|
||||
|
||||
The following tools are complete:
|
||||
<ul>
|
||||
* <code>secutil</code> is a tool to extract certificates and
|
||||
strongnames from assemblies in a format that can be easily
|
||||
re-used in source code (C# or VB.NET syntax).
|
||||
|
||||
* <code>cert2spc</code> is a tool to transform multiple X.509
|
||||
certificates (a chain) into a Software Publisher Certificate
|
||||
(SPC) - which is a long name for a simple PKCS#7 file.
|
||||
</ul>
|
||||
|
||||
**** TODO
|
||||
The following tools are still missing or incomplete:
|
||||
<ul>
|
||||
* <code>monosn</code> is a clone of the <code>sn</code> to manage
|
||||
strongnames. This tools is part of the runtime (not the class
|
||||
library) and as such is written in C.
|
||||
|
||||
* <code>signcode</code> and <code>chktrust</code> for signing
|
||||
and validating Authenticode(tm) signatures on assemblies.
|
||||
|
||||
* <code>makecert</code> to create X.509 test certificates that
|
||||
can be used (once transformed in SPC) to sign assemblies.
|
||||
|
||||
* Other tools like a, GUI-based, certificate manager...
|
||||
</ul>
|
||||
|
||||
Note that many of the tools requires the class library and/or the
|
||||
runtime to be ready for them.
|
||||
|
||||
<hr>
|
||||
** How to Help
|
||||
|
||||
Complete any of the TODO (and feel good about it ;-).
|
||||
|
||||
Add missing unit tests to classes or methods.
|
||||
|
||||
Write some documentation on the cryptographic classes for MonkeyGuide
|
||||
(as I'm not a good writer, at least in English, but you must be a good
|
||||
reader if you got to this part).
|
||||
|
||||
Optimization can also be done on algorithms as crypto is never fast
|
||||
enough. Just be sure to test every optimization (using the unit test)
|
||||
carefully - it's so fast to break an algorithm ;-).
|
||||
|
||||
Contact Sebastien Pouliot (<a href="mailto:[email protected]">home</a>
|
||||
, <a href="mailto:[email protected]">work</a>) if you need additional
|
||||
informations about the status of the cryptographic classes.
|
||||
|
||||
<hr>
|
||||
Last reviewed: January 19, 2003 (post mono 0.18)
|
||||
+247
-83
@@ -6,12 +6,202 @@
|
||||
href="runtime.html">Runtime</a> description for more details
|
||||
on this part of the project.
|
||||
|
||||
The software is also available on the `Mono' channel in <a href="http://www.ximian.com/products/redcarpet/">Red Carpet</a>.
|
||||
|
||||
Some useful links: <a
|
||||
href="http://www.go-mono.org/mono-beginning.html">Resources/Beginning
|
||||
section</a>, the <a
|
||||
href="http://www.go-mono.org/faq.html">FAQ</a> and the <a
|
||||
href="http://geneura.ugr.es/~jaime/deploy/mono-common-problems.html">
|
||||
Mono Common Problems</a>.
|
||||
href="http://www.go-mono.org/faq.html">FAQ</a>.
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr bgcolor="#DDDDDD">
|
||||
<td>
|
||||
<b>Release 0.18</b><br>
|
||||
<a href="archive/mono-0.18">Release notes</a><br>
|
||||
Jan 12th, 2003
|
||||
</td>
|
||||
<td>
|
||||
<table cellspacing="1" cellpadding="3">
|
||||
<tr bgcolor="#BBBBBB">
|
||||
<td>
|
||||
<b>Source Code</b>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li><a href="archive/mcs-0.18.tar.gz">Mono Class Libraries and C# Compiler.</a>
|
||||
<li><a href="archive/mono-0.18.tar.gz">Mono Runtime</a>
|
||||
<li><a href="archive/gc6.1.tar.gz">Boehm GC 6.1</a>
|
||||
<li><a href="archive/xsp-0.2.tar.gz">XSP web server</a> <b><font color="#dd0000">New!</font></b>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#BBBBBB">
|
||||
<td>
|
||||
<b>Source RPMs</b><br>
|
||||
(No RPMS for XSP).
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li><a href="archive/libgc-6.1-1.src.rpm">libgc-6.1-1.src.rpm</a>
|
||||
<li><a href="archive/mono-0.18-1.src.rpm">mono-0.18-1.src.rpm</a>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#999999">
|
||||
<b>Red Hat 7.3/x86</b>
|
||||
<ul>
|
||||
<li><a href="archive/redhat-73-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-73-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-73-i386/mono-0.18-1.i386.rpm">mono-0.18-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-73-i386/mono-devel-0.18-1.i386.rpm">mono-devel-0.18-1.i386.rpm</a>
|
||||
</ul>
|
||||
</td>
|
||||
<td bgcolor="#999999">
|
||||
<b>Red Hat 7.2/x86</b>
|
||||
<ul>
|
||||
<li><a href="archive/redhat-72-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-72-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-72-i386/mono-0.18-1.i386.rpm">mono-0.18-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-72-i386/mono-devel-0.18-1.i386.rpm">mono-devel-0.18-1.i386.rpm</a>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#999999">
|
||||
<b>Red Hat 7.1/x86</b>
|
||||
<ul>
|
||||
<li><a href="archive/redhat-71-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-71-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-71-i386/mono-0.18-1.i386.rpm">mono-0.18-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-71-i386/mono-devel-0.18-1.i386.rpm">mono-devel-0.18-1.i386.rpm</a>
|
||||
</ul>
|
||||
</td>
|
||||
<td bgcolor="#999999">
|
||||
<b>Mandrake 8.2/x86</b>
|
||||
<ul>
|
||||
<li><a href="archive/mandrake-82-i386/libgc-6.1-1.i586.rpm">libgc-6.1-1.i586.rpm</a>
|
||||
<li><a href="archive/mandrake-82-i386/libgc-devel-6.1-1.i586.rpm">libgc-devel-6.1-1.i586.rpm</a>
|
||||
<li><a href="archive/mandrake-82-i386/mono-0.18-1.i586.rpm">mono-0.18-1.i586.rpm</a>
|
||||
<li><a href="archive/mandrake-82-i386/mono-devel-0.18-1.i586.rpm">mono-devel-0.18-1.i586.rpm</a>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- <td bgcolor="#999999"> -->
|
||||
<!-- <b>SuSE 8.0/x86</b> -->
|
||||
<!-- <ul> -->
|
||||
<!-- <li><a href="archive/suse-80-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a> -->
|
||||
<!-- <li><a href="archive/suse-80-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a> -->
|
||||
<!-- <li><a href="archive/suse-80-i386/mono-0.17-1.i386.rpm">mono-0.17-1.i386.rpm</a> -->
|
||||
<!-- <li><a href="archive/suse-80-i386/mono-devel-0.17-1.i386.rpm">mono-devel-0.17-1.i386.rpm</a> -->
|
||||
<!-- </ul> -->
|
||||
<!-- </td> -->
|
||||
<td bgcolor="#999999">
|
||||
<b>Red Hat 8.0/x86</b>
|
||||
<ul>
|
||||
<li><a href="archive/redhat-80-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-80-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-80-i386/mono-0.18-1.i386.rpm">mono-0.18-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-80-i386/mono-devel-0.18-1.i386.rpm">mono-devel-0.18-1.i386.rpm</a>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#999999">
|
||||
<!-- <b>Windows Setup Wizard (NT/2000/XP)</b>␍ -->
|
||||
<!-- <ul>␍ -->
|
||||
<!-- <li><a href="archive/mono-0.17-stable.exe">Mono-Setup</a>␍ -->
|
||||
<!-- </ul>␍ -->
|
||||
<!-- </td>␍ -->
|
||||
<td bgcolor="#999999">
|
||||
<b>Debian packages</b>
|
||||
<ul>
|
||||
<li><a href="http://www.atoker.com/mono/">Alp's web site</a>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr bgcolor="#CCCCC">
|
||||
<td>
|
||||
<b>Regression Tests</b><br>
|
||||
</td>
|
||||
<td>
|
||||
You can get binaries for the Mono Regression Test
|
||||
Suite <a href="archive/mono-tests.tar.gz">here</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<br>
|
||||
* Older Releases:
|
||||
|
||||
We provide binaries for older releases until we have packages for the new release.
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr bgcolor="#DDDDDD">
|
||||
<td>
|
||||
<b>Release 0.17</b><br>
|
||||
<a href="archive/mono-0.17">Release notes</a><br>
|
||||
Dec 9th, 2002.
|
||||
</td>
|
||||
<td>
|
||||
<table cellspacing="1" cellpadding="3">
|
||||
<tr bgcolor="#BBBBBB">
|
||||
<td>
|
||||
<b>Source Code</b>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li><a href="archive/mcs-0.17.tar.gz">Mono Class Libraries and C# Compiler.</a>
|
||||
<li><a href="archive/mono-0.17.tar.gz">Mono Runtime</a>
|
||||
<li><a href="archive/gc6.1.tar.gz">Boehm GC 6.1</a>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#BBBBBB">
|
||||
<td>
|
||||
<b>Source RPMs</b><br>
|
||||
(No RPMS for XSP).
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li><a href="archive/libgc-6.1-1.src.rpm">libgc-6.1-1.src.rpm</a>
|
||||
<li><a href="archive/mono-0.17-2.src.rpm">mono-0.17-2.src.rpm</a>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#999999">
|
||||
<b>Windows Setup Wizard (NT/2000/XP)</b>
|
||||
<ul>
|
||||
<li><a href="archive/mono-0.17-stable.exe">Mono-Setup</a>
|
||||
</ul>
|
||||
</td>
|
||||
<td bgcolor="#999999">
|
||||
<b>Debian packages</b>
|
||||
<ul>
|
||||
<li><a href="http://www.atoker.com/mono/">Alp's web site</a>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
@@ -49,106 +239,27 @@
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#999999">
|
||||
<b>Red Hat 7.3/x86</b>
|
||||
<ul>
|
||||
<li><a href="archive/redhat-73-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-73-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-73-i386/mono-0.16-1.i386.rpm">mono-0.16-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-73-i386/mono-devel-0.16-1.i386.rpm">mono-devel-0.16-1.i386.rpm</a>
|
||||
</ul>
|
||||
</td>
|
||||
<td bgcolor="#999999">
|
||||
<b>Red Hat 7.2/x86</b>
|
||||
<ul>
|
||||
<li><a href="archive/redhat-72-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-72-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-72-i386/mono-0.16-1.i386.rpm">mono-0.16-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-72-i386/mono-devel-0.16-1.i386.rpm">mono-devel-0.16-1.i386.rpm</a>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#999999">
|
||||
<b>Red Hat 7.1/x86</b>
|
||||
<ul>
|
||||
<li><a href="archive/redhat-71-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-71-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-71-i386/mono-0.16-1.i386.rpm">mono-0.16-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-71-i386/mono-devel-0.16-1.i386.rpm">mono-devel-0.16-1.i386.rpm</a>
|
||||
</ul>
|
||||
</td>
|
||||
<td bgcolor="#999999">
|
||||
<b>Mandrake 8.2/x86</b>
|
||||
<ul>
|
||||
<li><a href="archive/mandrake-82-i386/libgc-6.1-1.i586.rpm">libgc-6.1-1.i586.rpm</a>
|
||||
<li><a href="archive/mandrake-82-i386/libgc-devel-6.1-1.i586.rpm">libgc-devel-6.1-1.i586.rpm</a>
|
||||
<li><a href="archive/mandrake-82-i386/mono-0.16-1.i586.rpm">mono-0.16-1.i586.rpm</a>
|
||||
<li><a href="archive/mandrake-82-i386/mono-devel-0.16-1.i586.rpm">mono-devel-0.16-1.i586.rpm</a>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#999999">
|
||||
<b>SuSE 8.0/x86</b>
|
||||
<ul>
|
||||
<li><a href="archive/suse-80-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/suse-80-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/suse-80-i386/mono-0.16-1.i386.rpm">mono-0.16-1.i386.rpm</a>
|
||||
<li><a href="archive/suse-80-i386/mono-devel-0.16-1.i386.rpm">mono-devel-0.16-1.i386.rpm</a>
|
||||
</ul>
|
||||
</td>
|
||||
<td bgcolor="#999999">
|
||||
<b>Red Hat 8.0/x86</b>
|
||||
<ul>
|
||||
<li><a href="archive/redhat-80-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-80-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-80-i386/mono-0.16-1.i386.rpm">mono-0.16-1.i386.rpm</a>
|
||||
<li><a href="archive/redhat-80-i386/mono-devel-0.16-1.i386.rpm">mono-devel-0.16-1.i386.rpm</a>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#999999">
|
||||
<b>Linux s390</b>
|
||||
<ul>
|
||||
<li><a href="archive/s390/glib2-2.0.6-13.s390.rpm">glib2-2.0.6-13.s390.rpm</a>
|
||||
<li><a href="archive/s390/glib2-devel-2.0.6-13.s390.rpm">glib2-devel-2.0.6-13.s390.rpm</a>
|
||||
<li><a href="archive/s390/libgc-6.1alpha5-1.s390.rpm">libgc-6.1alpha5-1.s390.rpm</a>
|
||||
p <li><a href="archive/s390/libgc-6.1alpha5-1.s390.rpm">libgc-6.1alpha5-1.s390.rpm</a>
|
||||
<li><a href="archive/s390/libgc-devel-6.1alpha5-1.s390.rpm">libgc-devel-6.1alpha5-1.s390.rpm</a>
|
||||
<li><a href="archive/s390/mono-0.16-1.s390.rpm">mono-0.16-1.s390.rpm</a>
|
||||
<li><a href="archive/s390/mono-devel-0.16-1.s390.rpm">mono-devel-0.16-1.s390.rpm</a>
|
||||
</ul>
|
||||
</td>
|
||||
<td bgcolor="#999999">
|
||||
<b>Windows Setup Wizard (NT/2000/XP)</b>
|
||||
<ul>
|
||||
<li><a href="archive/mono-0.16-stable.exe">Mono-Setup</a>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr bgcolor="#CCCCC">
|
||||
<td>
|
||||
<b>Regression Tests</b><br>
|
||||
</td>
|
||||
<td>
|
||||
You can get binaries for the Mono Regression Test
|
||||
Suite <a href="archive/mono-tests.tar.gz">here</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
* Older Releases:
|
||||
|
||||
We provide binaries for older releases until we have packages for the new release.
|
||||
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
@@ -231,6 +342,21 @@
|
||||
The <a href="anoncvs.html">anoncvs</a> mirrors provided by
|
||||
Hispalinux are updated every six hours.
|
||||
|
||||
* Compiling the code
|
||||
|
||||
There are a number of ways of compiling Mono
|
||||
|
||||
<ul>
|
||||
<li>From the <a href="#scripts">scripts</A>
|
||||
|
||||
<LI><a href="#install">Manually</a> for the first time.
|
||||
|
||||
<li>Manually, <a href="#upgrade">while upgrading</a> to CVS
|
||||
</ul>
|
||||
|
||||
(which is an easy way to get the latest CVS information)
|
||||
|
||||
<a name="scripts">
|
||||
* Compiling with scripts
|
||||
|
||||
There are scripts to help build mono for both Unix and Windows. Get
|
||||
@@ -309,6 +435,7 @@
|
||||
|
||||
You can change /usr/local to something else if you want.
|
||||
</ul>
|
||||
|
||||
|
||||
*** On Windows, to install and work on the compiler and the class libraries:
|
||||
|
||||
@@ -431,3 +558,40 @@ make install
|
||||
|
||||
</ul>
|
||||
|
||||
<a name="upgrading">
|
||||
** Upgrading
|
||||
|
||||
To upgrade your Mono installation from CVS, it is very
|
||||
important that you update your Mono and MCS modules from CVS
|
||||
at the same time. Failure to do so might result in a
|
||||
problematic installation as the runtime and the class
|
||||
libraries will be out of sync.
|
||||
|
||||
Run the following commands to update your CVS tree (more
|
||||
details in <a href="ccvs.html">Cvs and Mono</a> and the <A
|
||||
href="anoncvs.html">AnonCVS and Mono</a> pages).
|
||||
|
||||
<pre>
|
||||
(cd mono; cvs update -dP .)
|
||||
(cd mcs; cvs update -dP .)
|
||||
</pre>
|
||||
|
||||
Once you have updated your sources, remove any cached
|
||||
assemblies or old binaries from the Mono "runtime" directory,
|
||||
and then compile each component:
|
||||
|
||||
<pre>
|
||||
(cd mono/runtime; rm *exe *dll)
|
||||
(cd mono; make)
|
||||
(cd mcs; make)
|
||||
</pre>
|
||||
|
||||
Now you can install the result:
|
||||
|
||||
<pre>
|
||||
(cd mono; make install)
|
||||
</pre>
|
||||
|
||||
Notice that following the above procedure does not require you
|
||||
to manually install the software in the `mcs' directory, as
|
||||
the relevant files will be copied by the `mono' makefiles.
|
||||
@@ -3,6 +3,7 @@
|
||||
<a href="#gnome">Mono and GNOME</a><br>
|
||||
<a href="#gui">Building GUI applications with Mono</a><br>
|
||||
<a href="#msft">Mono and Microsoft</a><br>
|
||||
<a href="#platforms">Mono platforms</a><br>
|
||||
<a href="#pnpproject">Mono and the Portable.NET Project</a><br>
|
||||
<a href="#webservices">Web Services</a><br>
|
||||
<a href="#asp">Mono and ASP.NET</a><br>
|
||||
@@ -314,14 +315,16 @@ A: We do not know, volunteers are working on this, but there is no set
|
||||
|
||||
Q: Is Microsoft helping Ximian with this project?
|
||||
|
||||
A: No. Ximian CTO Miguel de Icaza had a friendly conversation with
|
||||
Microsoft software architect David Stutz, but that's about the
|
||||
extent of the contact. Microsoft is interested in other
|
||||
implementations of .NET and are willing to help make the ECMA spec
|
||||
more accurate for this purpose.
|
||||
A: There is no high level communication between Ximian and Microsoft
|
||||
at this point, but engineers who work on .NET or the ECMA groups
|
||||
have been very friendly, and very nice to answer our questions, or
|
||||
clarify part of the specification for us.
|
||||
|
||||
Ximian representatives have also spoken with Sam Ruby at the ECMA
|
||||
TG3 committee to discuss the same issues.
|
||||
Microsoft is interested in other implementations of .NET and are
|
||||
willing to help make the ECMA spec more accurate for this purpose.
|
||||
|
||||
Ximian was also invited to participate in the ECMA committee
|
||||
meetings for C# and the CLI.
|
||||
|
||||
Q: Is Microsoft or Corel paying Ximian to do this?
|
||||
|
||||
@@ -425,6 +428,44 @@ A: Not yet, but the client side API for authentication is not the problem.
|
||||
Alliance APIs. The problem is people on the web provider end that might use
|
||||
this for authentication.
|
||||
|
||||
<a name="platforms"></a>
|
||||
** Mono Platforms
|
||||
|
||||
Q: What operating systems does Mono run on?
|
||||
|
||||
A: Mono is known to run on Linux, Unix and Windows systems.
|
||||
|
||||
Q: What architectures does Mono support?
|
||||
|
||||
A: Mono today ships with a Just-in-Time compiler for x86-based
|
||||
systems. It is tested regularly on Linux, FreeBSD and Windows
|
||||
(with the XP/NT core).
|
||||
|
||||
There is also an interpreter, which is slower that runs on the
|
||||
s390, SPARC and PowerPC architectures.
|
||||
|
||||
Q: Can Mono run on Windows 9x, or ME editions?
|
||||
|
||||
A: Mono requires Unicode versions of Win32 APIs to run,
|
||||
and only a handful of *W functions is supported under Win9x.
|
||||
|
||||
There is Microsoft Layer for Unicode that provides implementation
|
||||
of these APIs on 9x systems.
|
||||
|
||||
Unfortunately it uses linker trick for delayed load that is not
|
||||
supported by ld, so some sort of adapter is necessary.
|
||||
|
||||
You will need MSLU and one of the following libs to link Mono to
|
||||
unicows.dll <a
|
||||
href="http://mono.eurosoft.od.ua/files/unimono.zip">http://mono.eurosoft.od.ua/files/unimono.zip</a>
|
||||
or alternatively search the net for "libunicows".
|
||||
|
||||
No changes to Mono source code required, the only thing is to make
|
||||
sure that linker will resolve imports to adapter library instead of
|
||||
Win32 libs. This is achieved by inserting -lunimono before
|
||||
-lkerner32/user32 in the linker's specs file.
|
||||
|
||||
|
||||
<a name="pnpproject"></a>
|
||||
** Mono and Portable.NET
|
||||
|
||||
@@ -436,13 +477,20 @@ A: Most of Mono is being written using C#, with only
|
||||
|
||||
It is easier to describe what is unique about Mono:
|
||||
<ul>
|
||||
<li> A Just-in-Time compiler engine. This is important for
|
||||
making your applications fast.
|
||||
|
||||
<li> A self-hosting C# compiler written in C#, which is clean, easy
|
||||
to maintain.
|
||||
|
||||
<li> Focus on the .NET Framework: we are tracking down the .NET
|
||||
Framework API definition, as we believe it is the API people
|
||||
will be most familiar with.
|
||||
|
||||
<li> A multi-platform runtime engine: both a JIT engine and an
|
||||
interpreter exist. The JIT engine runs currently on x86
|
||||
systems, while the interpreter works on SPARC, StrongARM and
|
||||
PowerPC systems.
|
||||
systems, while the interpreter works on SPARC, StrongARM,
|
||||
s390 and PowerPC systems.
|
||||
|
||||
<li> Supports Linux, Windows and Solaris at this point.
|
||||
|
||||
@@ -471,8 +519,9 @@ A: Most of Mono is being written using C#, with only
|
||||
<li> We have a great community of developers, without which Mono
|
||||
would not be possible.
|
||||
|
||||
<li> We will provide an ahead of time compilation mode in the
|
||||
future.
|
||||
<li> We are working on an ahead of time compilation mode to
|
||||
pre-compile code for the target architecture (this is part
|
||||
of our new code generation effort).
|
||||
</ul>
|
||||
|
||||
<a name="webservices"></a>
|
||||
@@ -659,6 +708,16 @@ Q: I'm wondering if there are any plans to start using nant to build the
|
||||
A: Maybe well be doing some sort of automated build process + testing when
|
||||
the summer finish.
|
||||
|
||||
Q: My C code uses the __stdcall which is not availble on Linux, how can I
|
||||
make the code portable Windows/Unix across platforms?
|
||||
|
||||
A: Replace the __stdcall attribute with the STDCALL macro, and include this
|
||||
in your C code for newer gcc versions:
|
||||
|
||||
#ifndef STDCALL
|
||||
#define STDCALL __attribute__((stdcall))
|
||||
#endif
|
||||
|
||||
<a name="asp">
|
||||
** Mono and ASP.NET
|
||||
|
||||
@@ -704,6 +763,12 @@ A: We are implementing all the classes in Microsoft .NET's System.Data, so
|
||||
you can be sure that things will work the same in Mono as with the Microsoft
|
||||
implementation.
|
||||
|
||||
Q: Does Mono can to connect to Sybase by using Mono.Data.*?
|
||||
|
||||
A: Yes. use Mono.Data.SybaseClient. First of all you have to create a
|
||||
SybaseConnection, and then, from it, use it as any other
|
||||
IDbConnection-based class.
|
||||
|
||||
<a name="java">
|
||||
** Mono and Java
|
||||
|
||||
@@ -773,6 +838,17 @@ A: Yes. Eto Demerzal has started a Rhino port to C#.
|
||||
After this is completed, we will begin developing
|
||||
the JavaScript compiler.
|
||||
|
||||
Q: Can Mono or .NET share system classes (loaded from mscore.dll and other
|
||||
libs) or will it behave like Sun's Java VM?
|
||||
|
||||
A: What you can do with mono is to load different applications in their own
|
||||
application domain: this is a feature of the CLR that allows sandboxing
|
||||
applications inside a single process space. This is usualy exploited to
|
||||
compartmentalize different parts of the same app, but it can also be
|
||||
effectively used to reduce the startup and memory overhead.
|
||||
Using different appdomains the runtime representation of types and
|
||||
methods is shared across applications.
|
||||
|
||||
<a name="extending"></a>
|
||||
** Extending Mono
|
||||
|
||||
@@ -1030,9 +1106,6 @@ A: We will have to evaluate the licenses for compatibility first,
|
||||
but as a general rule, we will accept the code under the same
|
||||
terms of the "container" module.
|
||||
|
||||
Q: Is the Mono
|
||||
|
||||
|
||||
<a name="patents"></a>
|
||||
** Patents
|
||||
|
||||
@@ -1140,6 +1213,15 @@ A: GtkHTML is just a lightweight HTML rendering engine that does not
|
||||
Linux when disconnected from the Web (and that has better
|
||||
interactions than a web page).
|
||||
|
||||
Q: Is there a command-line tool that allows me to access .NET interactively?
|
||||
|
||||
A: There are several but one that is free software and uses MCS is the one
|
||||
Dennis Lu from Rice University is working on; a REPL C# interpreter.
|
||||
|
||||
Q: Is it possible to use Visual C++ with Mono?.
|
||||
|
||||
A: Well, It's possible to run VC++ generated apps under Mono though.
|
||||
|
||||
<a name="problems"></a>
|
||||
** Mono Common Problems
|
||||
|
||||
|
||||
+78
-3
@@ -8,7 +8,7 @@
|
||||
by Borland under the Interbase Public License</li>
|
||||
|
||||
<li>Both the Firebird Relational Database and the Firebird .NET Data Provider can be
|
||||
downloaded from <a href="http://sourceforge.net/projects/firebird/firebird">here</a></li>
|
||||
downloaded from <a href="http://sourceforge.net/projects/firebird/">here</a></li>
|
||||
|
||||
<li>The Firebird .NET Data provider has been made
|
||||
available by Carlos Guzmán Álvarez (aka "Carlos G.A."), who has also made a
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
</ul>
|
||||
|
||||
* Current Status
|
||||
** Current Status
|
||||
|
||||
<ul>
|
||||
<li>Currently, it is able to connect to Firebird and Interbase databases
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
</ul>
|
||||
|
||||
* Action Plan
|
||||
** Action Plan
|
||||
|
||||
<ul>
|
||||
<li>Bug fixing</li>
|
||||
@@ -98,3 +98,78 @@
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
** Testing
|
||||
|
||||
<ul>
|
||||
<li>Need a working mono and mcs</li>
|
||||
<li>Need access to a Firebird Relational Database or you can download
|
||||
it from <a href="http://firebird.sourceforge.net">here</a></li>
|
||||
<li>Get the Firebird .NET data provider from here as
|
||||
<a href="http://lists.sourceforge.net/lists/listinfo/firebird-net-provider">firebird-net-provider</a>. Make
|
||||
sure the Firebird .NET data provider binary assembly FirebirdSql.Data.Firebird.dll is
|
||||
installed in the same place as the mono class libraries.</li>
|
||||
<li>C# Example for Mono's System.Data.OleDb:
|
||||
<pre>
|
||||
using System;
|
||||
using System.Data;
|
||||
using FirebirdSql.Data.Firebird;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
string connectionString =
|
||||
"Database=C:\\PROGRAM FILES\\FIREBIRD\\EXAMPLES\\EMPLOYEE.GDB;" +
|
||||
"User=SYSDBA;" +
|
||||
"Password=masterkey;" +
|
||||
"Dialect=3;" +
|
||||
"Server=localhost";
|
||||
IDbConnection dbcon = new FbConnection(connectionString);
|
||||
IDbCommand dbcmd = dbcon.CreateCommand();
|
||||
string sql = "SELECT * FROM employee";
|
||||
dbcmd.ConnectionString = sql;
|
||||
IDataReader reader = dbcmd.ExecuteReader();
|
||||
while(reader.Read()) {
|
||||
object dataValue = myReader.GetValue(0);
|
||||
string sValue = dataValue.ToString();
|
||||
Console.WriteLine("Value: " + sValue);
|
||||
}
|
||||
// clean up
|
||||
reader.Close();
|
||||
reader = null;
|
||||
dbcmd.Dispose();
|
||||
dbcmd = null;
|
||||
dbcon.Close();
|
||||
dbcon = null;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</li>
|
||||
<li>Building C# Example:
|
||||
<ul>
|
||||
<li>Save the example to a file, such as, TestExample.cs</li>
|
||||
<li>Build on Linux:
|
||||
<pre>
|
||||
mcs TestExample.cs -r System.Data.dll \
|
||||
-r FirebirdSql.Data.Firebird.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>Build on Windows via Cygwin:
|
||||
<pre>
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
|
||||
TestExample.cs \
|
||||
-lib:C:/cygwin/home/MyHome/mono/install/lib \
|
||||
-r System.Data.dll -r FirebirdSql.Data.Firebird.dll
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Running the Example:
|
||||
<pre>
|
||||
mono TestExample.exe
|
||||
</pre>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
* Gtk#
|
||||
|
||||
<a href="http://gtk-sharp.sourceforge.net">Gtk#</a> (Gtk
|
||||
sharp) is a set of C# language bindings for the
|
||||
<a href="http://www.gtk.org">Gtk+</a> toolkit and other
|
||||
libraries that are part of the
|
||||
<a href="http://www.gnome.org">GNOME</a> platform .
|
||||
|
||||
** API of Gtk#
|
||||
|
||||
The API is browsable
|
||||
<a href="http://primates.ximian.com/~tvgm/gtk-sharp-docs/">here</a>
|
||||
|
||||
** Where to learn more.
|
||||
|
||||
Visit the official site for the <a href="http://gtk-sharp.sourceforge.net">Gtk# Project</a>.
|
||||
The <a href="http://www.go-mono.org/faq">Mono FAQ</a> has some useful
|
||||
information too.
|
||||
|
||||
** GTK# On Linux
|
||||
|
||||
<p>Where to get distributions of GTK# for Linux: TODO
|
||||
|
||||
<p>Buidling on Linux:
|
||||
|
||||
<ul>
|
||||
<li>Get GTK# source from <a href="http://gtk-sharp.sourceforge.net">Gtk# Project</a>.</li>
|
||||
<li>run ./autogen.sh --prefix=my_mono_installation_prefix</li>
|
||||
<li>make</li>
|
||||
<li>make install</li>
|
||||
</ul>
|
||||
|
||||
** GTK# On Windows
|
||||
|
||||
<p>There is a Windows Installer for GTK# <a href="http://www.sport-huettn.de/mono/gtk-sharp-0.6-stable-2.exe">here</a>.
|
||||
|
||||
<p>If you want to build GTK# yourself on Windows:
|
||||
|
||||
<p>To build gtk# under windows, you will need the following:
|
||||
|
||||
<ul>
|
||||
<li>cygwin from <a href="http://www.cygwin.com/">here</a> When installing Cygwin via setup.exe,
|
||||
by default binutils and other tools do not get installed; you have to make
|
||||
sure to select these items. Just make
|
||||
sure Base and Development are set to Install.</li>
|
||||
<li>Mono 0.17 or later from <a href="http://www.go-mono.com/download.html">here</a>
|
||||
You can use Windows Setup Wizard (NT/2000/XP).</li>
|
||||
<li>GTK+ 2.0 (and dependencies). You can obtain gtk+ 2.0 by either of the
|
||||
following:
|
||||
<ul>
|
||||
<li>You can get a Windows Installer at:
|
||||
<a href="http://www.dropline.net/jade/download.html">here</a> </li>
|
||||
<li>or get the separate binary and dev/lib packages at
|
||||
at <a href="http://www.gimp.org/~tml/gimp/win32/downloads.html">here</a> </li>
|
||||
<li>or binary package from Dev-C++ site <a href="http://www.bloodshed.net/dev/packages/gtk.html">here</a> </li>
|
||||
<li>or get Gtk4Win <a href="http://wingtk.sourceforge.net/index.html">here</a> </li>
|
||||
<li>or the source at <a href="http://www.gtk.org/">here</a> </li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>binary distriubtion of a current web browser
|
||||
like Internet Explorer 4.0, Mozilla 1.0, or Netscape 7.0 which
|
||||
includes things like msvcrt.dll.</li>
|
||||
<li>Microsoft .NET Framework at
|
||||
<a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true">here</a> </li>
|
||||
|
||||
<p>If you are running Windows 95/98/ME, then you will need Unicode support.
|
||||
Look in
|
||||
mono-list archives for information about how to get
|
||||
Mono to work on Windows 9x.
|
||||
<a href="http://lists.ximian.com/archives/public/mono-list/2002-December/004158.html">here</a>
|
||||
|
||||
<p>Environment Variables to set:
|
||||
<ul>
|
||||
<li>PATH - set to your mono installation bin and lib path.
|
||||
For example, my mono installation prefix is:
|
||||
<pre>
|
||||
F:/cygwin/home/DanielMorgan/mono/install
|
||||
</pre>
|
||||
<p>So, I would set my PATH in the Windows Control Panel as:
|
||||
<pre>
|
||||
F:/cygwin/home/DanielMorgan/mono/install/bin;F:/cygwin/home/DanielMorgan/mono/install/lib</li>
|
||||
</pre>
|
||||
</li>
|
||||
<li>LD_LIBRARY_PATH - set to your mono installation lib path</li>
|
||||
<li>PKG_CONFIG_PATH - set to your mono installation lib/pkgconfig path, such
|
||||
as,
|
||||
<pre>
|
||||
F:/cygwin/home/DanielMorgan/mono/install/lib/pkgconfig</li>
|
||||
</pre>
|
||||
|
||||
<p>If you got the gtk-sharp source, cd to the gtk-sharp directory, type:
|
||||
<pre>
|
||||
./autogen.sh --prefix=~/mono/install
|
||||
</pre>
|
||||
|
||||
<p>Set your --prefix= to whatever your mono installation prefix is located.
|
||||
This will take awhile to go through the ./autogen.sh and ./configure...
|
||||
|
||||
<p>After that it finishes succesfully, you run make with the makefile.win32
|
||||
like:
|
||||
<pre>
|
||||
make -f makefile.win32
|
||||
</pre>
|
||||
|
||||
<p>After that finishes succesfully, you can copy to your mono installation lib
|
||||
path like:
|
||||
<pre>
|
||||
cp */*.dll ~/mono/install/lib
|
||||
</pre>
|
||||
</ul>
|
||||
|
||||
<p>The pkg-config files for
|
||||
gtk+ 2.0 and dependencies will need to be set correctly if they haven't
|
||||
already been.
|
||||
|
||||
<p>Look in your mono installation/lib/pkgconfig, such as,
|
||||
<pre>
|
||||
F:/cygwin/home/DanielMorgan/mono/install/lib/pkgconfig
|
||||
</pre>
|
||||
|
||||
<p>You will find files like: gtk+-2.0.pc
|
||||
|
||||
<p>Edit the line that says
|
||||
|
||||
<pre>
|
||||
prefix=something
|
||||
</pre>
|
||||
|
||||
<p>And set it to your mono installation prefix, such as,
|
||||
|
||||
<pre>
|
||||
prefix=F:/cygwin/home/DanielMorgan/mono/install
|
||||
</pre>
|
||||
|
||||
<p>Do this for all the .pc files in that directory. If there are not any, then
|
||||
you will need to create them. Or get them from somewhere like the dev
|
||||
packages at
|
||||
<a href="http://www.gimp.org/~tml/gimp/win32/downloads.html">here</a>
|
||||
|
||||
|
||||
** GTK# On Solaris
|
||||
|
||||
TODO
|
||||
|
||||
** GTK# On AIX
|
||||
|
||||
TODO
|
||||
Executable
+132
@@ -0,0 +1,132 @@
|
||||
* IBM DB2 Data Provider
|
||||
<ul>
|
||||
<li>Exists in namespace DB2ClientCS and assembly Mono.Data.DB2Client</li>
|
||||
|
||||
<li>The source code exists at mcs/class/Mono.Data.DB2Client</li>
|
||||
|
||||
<li>Requires the Call Level Interface to IBM DB2 shared library. This
|
||||
is db2cli.dll on Windows. The IBM DB2 CLI API is very similar to the ODBC API. If
|
||||
you take a look at Mono's System.Data.Odbc ODBC provider, you will see the
|
||||
DllImport's have similiar function names.</li>
|
||||
|
||||
<li><a href="http://www-3.ibm.com/software/data/db2/">IBM DB2 Universal Database</a> can be downloaded from IBM.</li>
|
||||
|
||||
<li>IBM DB2 Provider created by Christopher Bockner.</li>
|
||||
</ul>
|
||||
|
||||
** Current Status
|
||||
|
||||
<ul>
|
||||
<li>Compiles on Windows and Linux. Works on Windows. Still needs to be tested on Linux.</li>
|
||||
|
||||
<li>Able to connect to IBM DB2</li>
|
||||
|
||||
<li>Able to execute DML, such as, CREATE TABLE via ExecuteNonQuery()</li>
|
||||
|
||||
</ul>
|
||||
|
||||
** Action Plan
|
||||
|
||||
<ul>
|
||||
<li>Still needs work to get it to retrieve data via ExecuteReader() and
|
||||
use the data reader to read data.</li>
|
||||
|
||||
</ul>
|
||||
|
||||
** Testing
|
||||
|
||||
In order to test.
|
||||
<ul>
|
||||
<li>Have working mono and mcs setup</li>
|
||||
|
||||
<li>Have access to an IBM DB2 database. If you do not have access, download the
|
||||
<a href="http://www-3.ibm.com/software/data/db2/">IBM DB2</a> software. There
|
||||
are versions for Windows, Linux, AIX, and Sun Solaris.</li>
|
||||
|
||||
<li>Make sure the assembly Mono.Data.DB2Client.dll was built and installed
|
||||
where the other class libraries are installed.</li>
|
||||
|
||||
<li>If you do not have the source to mcs, get the source from
|
||||
<a href="http://www.go-mono.com/download">here</a></li>
|
||||
|
||||
<li>In mcs/class/Mono.Data.DB2Client/Test/DBConnTest, you will find
|
||||
a DBConnTest.cs.</li>
|
||||
|
||||
<li>To build DBConnTest:
|
||||
<ul>
|
||||
<li>On Unix:</li>
|
||||
<pre>
|
||||
mcs DBConnTest.cs -r System.Data.dll -r Mono.Data.DB2Client.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>On Windows via Cygwin:
|
||||
<pre>
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe DBConnTest.cs \
|
||||
-lib:C:/cygwin/home/MyHome/mono/install/lib \
|
||||
-r System.Data.dll -r Mono.Data.DB2Client.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>To run it on mono:
|
||||
<pre>
|
||||
mono DBConnTest.exe database userid password
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>C# Example:
|
||||
<pre>
|
||||
using System;
|
||||
using System.Data;
|
||||
using Mono.Data.DB2Client;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
string connectionString =
|
||||
"DSN=sample;UID=db2admin;PWD=mypass";
|
||||
IDbConnection dbcon = new DB2ClientConnection(connectionString);
|
||||
IDbCommand dbcmd = dbcon.CreateCommand();
|
||||
string sql =
|
||||
"CREATE TABLE mono_db2_test1 ( " +
|
||||
" testid varchar(2), " +
|
||||
" testdesc varchar(16) " +
|
||||
")";
|
||||
dbcmd.ConnectionString = sql;
|
||||
dbcmd.ExecuteNonQuery();
|
||||
dbcmd.Dispose();
|
||||
dbcmd = null;
|
||||
dbcon.Close();
|
||||
dbcon = null;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</li>
|
||||
<li>Building C# Example:
|
||||
<ul>
|
||||
<li>Save the example to a file, such as, TestExample.cs</li>
|
||||
<li>Build on Linux:
|
||||
<pre>
|
||||
mcs TestExample.cs -r System.Data.dll \
|
||||
-r Mono.Data.DB2Client.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>Build on Windows via Cygwin:
|
||||
<pre>
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
|
||||
TestExample.cs \
|
||||
-lib:C:/cygwin/home/MyHome/mono/install/lib \
|
||||
-r System.Data.dll -r Mono.Data.DB2Client.dll
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Running the Example:
|
||||
<pre>
|
||||
mono TestExample.exe
|
||||
</pre>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
@@ -91,7 +91,104 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@item Dec 9th, 2002: VB.NET, Oracle Provider.
|
||||
@item Jan, 17th: DB2 provider, MacOS X
|
||||
|
||||
Christopher Bockner has contributed a DB2 System.Data client.
|
||||
|
||||
MacOS X support on the runtime has been integrated into the
|
||||
distribution, and MCS works with it.
|
||||
|
||||
Zoltan has managed to get <a
|
||||
href="http://radio.weblogs.com/0109845/">IKVM</a> (a Java VM
|
||||
for .NET) to run with Mono. The HelloWorld.class runs with
|
||||
the Mono runtime.
|
||||
|
||||
@item Jan, 13th, 2003: Mono 0.18 released
|
||||
|
||||
Mono 0.18 has been released. Check out the <a
|
||||
href="archive/mono-0.18">release notes</a> for an overview of
|
||||
the changes. You can get it <a href="download.html">here</a>.
|
||||
|
||||
@item Jan 10th, 2003: Mono Weekly News.
|
||||
|
||||
A new issue of the <a
|
||||
href="http://lists.ximian.com/archives/public/mono-list/2003-January/004903.html">Mono
|
||||
Weekly News</a> has been published.
|
||||
|
||||
Check out the <a href="crypto.html">Crypto status</a> page
|
||||
that Sebastien has put together.
|
||||
|
||||
@item Jan 3rd, 2003: Glade#, Code Coverage, Apache, MBas, Debugger.
|
||||
|
||||
Rachel has made Glade# use attributes so binding C# widgets to
|
||||
the designed widgets is now easier than ever. Alp has
|
||||
improved this to use implicit names as well.
|
||||
|
||||
Martin's Mono debugger now has support for multi-thread
|
||||
debugging. Special feature: breakpoints can be defined in a
|
||||
per-thread basis now.
|
||||
|
||||
Daniel López has checked in his Apache module to integrate
|
||||
Mono and Mono's ASP.NET support as an Apache module. Gonzalo
|
||||
has folded his new Mono hosting classes into this module (they
|
||||
are now shared between XSP and mod_mono). You can get the
|
||||
mod_apache from CVS (module name: mod_mono).
|
||||
|
||||
Mono Basic improvements: Marco has added support for more
|
||||
statements on the grammar.
|
||||
|
||||
Zoltan has <a href="http://www.nexus.hu/vargaz2/">posted</a>
|
||||
his Code Coverage analysis tool for Mono.
|
||||
|
||||
@item Dec 17th, 2002: Mono: Commercial uses.
|
||||
|
||||
<a href="http://www.tipic.com">Tipic</a> today <a
|
||||
href="http://www.ximian.com/about_us/press_center/press_releases/index.html?pr=tipic_mono">announced</a>
|
||||
their work on porting their Instant Messaging Server platform
|
||||
to run on Mono.
|
||||
|
||||
<a href="http://www.winfessor.com">Winfessor</a> also <a
|
||||
href="http://www.winfessor.com/press.asp">announced</a> the
|
||||
availability of their Jabber SDK to run on Mono.
|
||||
|
||||
Also two weeks ago we mentioned <a
|
||||
href="http://www.openlinksw.com">OpenLink Software's</a> <a
|
||||
href="http://www.ximian.com/about_us/press_center/press_releases/index.html?pr=openlink_mono">announcement</a>
|
||||
of their product, also using Mono.
|
||||
|
||||
@item Dec 10th, 2002: Gtk# 0.6 released; Mono 0.17 packages for Windows and Debian.
|
||||
|
||||
Mike Kestner <a
|
||||
href="http://lists.ximian.com/archives/public/mono-list/2002-December/003961.html">announced
|
||||
Gtk# 0.6</a>. This new release includes many new features and
|
||||
bug fixes, and is the perfect companion to the <a
|
||||
href="archive/mono-0.17">Mono 0.17</a> release.
|
||||
|
||||
Johannes has contributed a Windows-ready package of Mono 0.17,
|
||||
and its available from our <a
|
||||
href="download.html">download</a> page.
|
||||
|
||||
Alp Toker has <a href="http://www.atoker.com/mono/">Debian packages</a>
|
||||
|
||||
@item Dec 9th, 2002: Mono 0.17 has been released
|
||||
|
||||
Mono 0.17 has been released. Check out the <a
|
||||
href="archive/mono-0.17">release notes</a> for a more detailed
|
||||
list. You can get it <a href="download.html">here</a>.
|
||||
|
||||
Many new features as well as plenty of bug fixes. Many new
|
||||
System.Data providers and a more mature System.Web (ASP.NET)
|
||||
which can now be hosted in any web server. A simple <a
|
||||
href="archive/xsp-0.2.tar.gz">test web server</a> to host
|
||||
asp.net has been released as well.
|
||||
|
||||
This version also integrates Neale's s390 port.
|
||||
|
||||
This release also includes a new exception handling system
|
||||
that uses the gcc exception information that vastly improves
|
||||
our internalcall speed (15% faster mcs compilation times).
|
||||
|
||||
@item Dec 8th, 2002: VB.NET, Oracle Provider.
|
||||
|
||||
Marco has got the Mono Basic compiler up to speed (support for
|
||||
classes, modules, expressions, object creation, method
|
||||
@@ -101,7 +198,7 @@
|
||||
Screenshots: <a
|
||||
href="http://modgb.sourceforge.net/monobasic_snap.png">in
|
||||
Windows doing Windows.Forms</a> and in Linux doing <a
|
||||
ref="images/gtk-vb.png">VB with Gtk#</a> (courtesy of Alp).
|
||||
href="images/gtk-vb.png">VB with Gtk#</a> (courtesy of Alp).
|
||||
|
||||
Daniel Morgan has checked in his Oracle provider to the CVS
|
||||
repository as well.
|
||||
@@ -493,6 +590,8 @@
|
||||
|
||||
@item Aug 20th, 2002: Remoting work, Resources, SPARC checkins, ADO.NET
|
||||
|
||||
<b>San Francisco</b>: August 14th. Linux World Expo.
|
||||
|
||||
Mark Crichton has checked in his patches to get the SPARC port
|
||||
on par with the PPC port.
|
||||
|
||||
|
||||
+19
-1
@@ -8,6 +8,14 @@
|
||||
* <a href="#MonoLogo">MonoLogo</a>
|
||||
* <a href="#Oberon">Oberon</a>
|
||||
* <a href="#Forth">Forth</a>
|
||||
* <a href="#mbas">Mono Basic</a> (Mono's VB.NET compiler)
|
||||
</ul>
|
||||
|
||||
Languages which are known to run, but we have not done a
|
||||
complete ran of all their regression tests to validate it:
|
||||
|
||||
<ul>
|
||||
* Kylix.NET.
|
||||
</ul>
|
||||
|
||||
Languages we would like to have supported, with links to resources:
|
||||
@@ -28,8 +36,11 @@
|
||||
** Java
|
||||
|
||||
There is a very interesting project to make a JavaVM for .NET
|
||||
<a href="http://radio.weblogs.com/0109845/">here</a>
|
||||
<a href="http://radio.weblogs.com/0109845/">here</a>.
|
||||
Currently this will not work with Mono, as they use some
|
||||
pieces of Managed C++ to implement the JNI interface.
|
||||
|
||||
A workaround has been discussed, contact the author if you want to contribute.
|
||||
|
||||
<a name="MonoLogo">
|
||||
** MonoLogo
|
||||
@@ -40,6 +51,13 @@
|
||||
hosted in the <a href="ccvs.html">Mono CVS</a> repository
|
||||
and also available on the <a href="anoncvs.html">AnonCVS</a> mirrors.
|
||||
|
||||
<a name="mbas">
|
||||
** Mono Basic (Mono's VB.NET compiler)
|
||||
|
||||
Work has resumed on the Mono Visual Basic compiler (currently
|
||||
called mbas). It is part of the standard Mono distribution,
|
||||
but its still an early compiler.
|
||||
|
||||
<a name="Oberon">
|
||||
** Oberon
|
||||
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
* mbas: Mono's Basic.NET Compiler.
|
||||
|
||||
MBAS is a CIL compiler for the Visual Basic language, an extended
|
||||
version of VisualBasic.NET. It's based on the MCS compiler
|
||||
and still in heavy development, though many language features are
|
||||
already supported.
|
||||
|
||||
** What works
|
||||
|
||||
<ul>
|
||||
|
||||
* Classes, Fields and Methods. Properties are still
|
||||
being worked on.
|
||||
|
||||
* Module definition and Sub functionality (TODO: Function's)
|
||||
|
||||
* Namespace Import, so can you reference, instantiate
|
||||
and call external assemblies
|
||||
|
||||
* Parameter passing between Sub's. ByVal and ByRef
|
||||
parameters are being worked on.
|
||||
|
||||
* Delegates
|
||||
|
||||
* Object creation
|
||||
|
||||
* Events - to a limited extent. You can declare a
|
||||
Class-Field as 'WithEvents' and dynamic events (i.e
|
||||
AddHandler MyButton.Click, Button1_OnClick). Please
|
||||
beware: just after committing the code, I discovered
|
||||
that the handler field in the AddHandler call is
|
||||
case-sensitive, a remnant of mBas' mcs heritage)
|
||||
|
||||
* Statements supported are 'If..Then..Else' ,
|
||||
'While..End While' and assignment statements. Simple
|
||||
operators (+, -, *, /, >, <, =) should also
|
||||
work. Other statements (For..Next, etc.) should be
|
||||
quite trivial to implement.
|
||||
</ul>
|
||||
|
||||
A lot of this stuff is implemented rebuilding proper expressions and
|
||||
statements on top of the classes provided by mcs (look at the grammar -
|
||||
mb-parser.jay - and compare it with cs-parser.jay, if interested).
|
||||
|
||||
** TODO-list
|
||||
|
||||
At this stage almost every element of the language must be still checked for
|
||||
conformance to MS'implementation. Help is particularly needed for those areas
|
||||
I know little of (mcs internals are still quite obscure to me). I'd like to
|
||||
implement class properties, the missing statements, exception handling,
|
||||
structures and actual event support (not necessarily in this order). Once we
|
||||
have all this stuff set up and reasonably bug-free, more work could be done
|
||||
on helper functions and Object-vars handling.
|
||||
|
||||
+2
-5
@@ -11,22 +11,19 @@
|
||||
|
||||
For <a href="mono-beginning/t1.html">RPM Linux based systems</a>
|
||||
|
||||
For <a href="http://geneura.ugr.es/~jaime/mono-beginning-windows/t1.html">Microsoft Windows</a>
|
||||
For <a href="http://monoevo.sourceforge.net/mono-windows/mono-beginning-windows/t1.html">Microsoft Windows</a>
|
||||
|
||||
|
||||
PDF Format
|
||||
|
||||
For <a href="mono-beginning.pdf">RPM Linux based systems</a>
|
||||
|
||||
For <a href="http://geneura.ugr.es/~jaime/mono-beginning-windows/mono-beginning-windows.pdf">Microsoft Windows</a>
|
||||
|
||||
|
||||
|
||||
XML Source
|
||||
|
||||
For <a href="mono-beginning.xml">RPM Linux based systems</a>
|
||||
|
||||
For <a href="http://geneura.ugr.es/~jaime/mono-beginning-windows/mono-beginning-windows.xml">Microsoft Windows</a>
|
||||
For <a href="http://monoevo.sourceforge.net/mono-windows/mono-beginning-windows.xml">Microsoft Windows</a>
|
||||
|
||||
|
||||
Currently Hinne is working on a Mono Tools HOWTO. Which will be
|
||||
|
||||
@@ -3,27 +3,32 @@
|
||||
<ul>
|
||||
<li>MySQL Data Provider for
|
||||
<a href="http://www.mysql.com/">MySQL</a> databases. It is written in C# and uses
|
||||
the MySQL C Client Library
|
||||
the MySQL C Client Library</li>
|
||||
|
||||
<li>Exists in namespace Mono.Data.MySql and assembly Mono.Data.MySql
|
||||
<li>Exists in namespace Mono.Data.MySql and assembly Mono.Data.MySql</li>
|
||||
|
||||
<li>Works on Windows and Linux via the MySQL client shared library
|
||||
(libmySQL.dll on Windows and libmysqlclient.so on Linux).
|
||||
(libmySQL.dll on Windows and libmysqlclient.so on Linux).</li>
|
||||
|
||||
<li>Started by Daniel Morgan using C# Bindings to MySQL from Brad Meril.
|
||||
<li>Started by Daniel Morgan using
|
||||
<a href="http://www.cybercom.net/~zbrad/DotNet/MySql/">C# Bindings to MySQL</a> from <a href="mailto:[email protected]">Brad Merill</a>
|
||||
|
||||
<li><a href="http://www.mysql.com/articles/dotnet/">Exploring MySQL in the Microsoft .NET Environment</a> is an article
|
||||
by Mr. Venu who is a MySQL AB developer.
|
||||
by Mr. Venu who is a MySQL AB developer.</li>
|
||||
|
||||
<li>Other projects which have created a .NET Data provider for MySQL in C#
|
||||
<li>There is a good alternative to the provider in Mono:
|
||||
<ul>
|
||||
<li><a href="http://sourceforge.net/projects/mysqldrivercs/">MySQLDriverCS</a> is a MySQL provider written in C#
|
||||
<li><a href="http://sourceforge.net/projects/mysqlnet/">MySQLNet</a> is a MySQL Manager provider written in C#
|
||||
<li><a href="http://sourceforge.net/projects/mysqlnet/">MySQLNet</a> from ByteFX
|
||||
is a MySQL Managed provider written in 100% C#,
|
||||
does not require a client library, and works on Microsoft .NET and Mono. You
|
||||
need at least Mono 0.18 and MySQLNet 0.65 for it to work on Mono.</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li>Testing for Mono's Mono.Data.MySql and ByteFX's ByteFX.Data.MySQLClient is below...</li>
|
||||
</ul>
|
||||
|
||||
* Current Status
|
||||
** Current Status
|
||||
|
||||
<ul>
|
||||
<li>can connect
|
||||
@@ -48,7 +53,7 @@
|
||||
can be modified with a text editor.
|
||||
</ul>
|
||||
|
||||
* Action plan
|
||||
** Action plan
|
||||
|
||||
The current plan to work on the MySQL data provider:
|
||||
|
||||
@@ -64,3 +69,202 @@ The current plan to work on the MySQL data provider:
|
||||
|
||||
<li>Get the provider to work like other data providers
|
||||
</ul>
|
||||
|
||||
** Testing for Mono's MySQL provider (Mono.Data.MySql)
|
||||
|
||||
<ul>
|
||||
<li>Have access to a MySQL database or download it from
|
||||
<ul>
|
||||
<li><a href="http://www.mysql.com/downloads/index.html">MySQL AB</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>Take a look at MySqlTest.cs in mcs/class/Mono.Data.MySql/Test</li>
|
||||
|
||||
<li>Has a ConnectionString format:
|
||||
<pre>
|
||||
"Server=hostname;" +
|
||||
"Database=database;" +
|
||||
"User ID=username;" +
|
||||
"Password=password"
|
||||
(or)
|
||||
"host=hostname;" +
|
||||
"dbname=database;" +
|
||||
"user=username;" +
|
||||
"passwd=password"
|
||||
</pre>
|
||||
|
||||
<li>C# Example:
|
||||
<pre>
|
||||
using System;
|
||||
using System.Data;
|
||||
using Mono.Data.MySql;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
string connectionString =
|
||||
"Server=localhost;" +
|
||||
"Database=test;" +
|
||||
"User ID=mysql;" +
|
||||
"Password=;";
|
||||
IDbConnection dbcon;
|
||||
dbcon = new MySqlConnection(connectionString);
|
||||
IDbCommand dbcmd = dbcon.CreateCommand();
|
||||
// requires a table to be created named employee
|
||||
// with columns firstname and lastname
|
||||
// such as,
|
||||
// CREATE TABLE employee (
|
||||
// firstname varchar(32),
|
||||
// lastname varchar(32));
|
||||
string sql =
|
||||
"SELECT firstname, lastname " +
|
||||
"FROM employee";
|
||||
dbcmd.ConnectionString = sql;
|
||||
IDataReader reader = dbcmd.ExecuteReader();
|
||||
while(reader.Read()) {
|
||||
string FirstName = reader["firstname"];
|
||||
string LastName = reader["lastname"];
|
||||
Console.WriteLine("Name: " +
|
||||
FirstName + " " + LastName);
|
||||
}
|
||||
// clean up
|
||||
reader.Close();
|
||||
reader = null;
|
||||
dbcmd.Dispose();
|
||||
dbcmd = null;
|
||||
dbcon.Close();
|
||||
dbcon = null;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</li>
|
||||
<li>Building C# Example:
|
||||
<ul>
|
||||
<li>Save the example to a file, such as, TestExample.cs</li>
|
||||
<li>Build on Linux:
|
||||
<pre>
|
||||
mcs TestExample.cs \
|
||||
-r System.Data.dll \
|
||||
-r Mono.Data.MySql.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>Build on Windows via Cygwin:
|
||||
<pre>
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
|
||||
TestExample.cs \
|
||||
-lib:C:/cygwin/home/MyHome/mono/install/lib \
|
||||
-r System.Data.dll \
|
||||
-r Mono.Data.MySql.dll
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Running the Example:
|
||||
<pre>
|
||||
mono TestExample.exe
|
||||
</pre>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
** Testing for MySQLNet provider (ByteFX.Data.MySQLClient)
|
||||
|
||||
<ul>
|
||||
<li>Have access to a MySQL database or download it from
|
||||
<ul>
|
||||
<li><a href="http://www.mysql.com/downloads/index.html">MySQL AB</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>MySQLNet can be gotten from <a href="http://sourceforge.net/projects/mysqlnet/">here</a> and the
|
||||
binary assembly ByteFX.Data.dll needs to be installed
|
||||
in the same place as the mono class libraries.</li>
|
||||
|
||||
<li>MySQLNet requires <a href="http://www.icsharpcode.net/OpenSource/SharpZipLib/default.asp">SharpZipLib</a> which is
|
||||
a Zip Library written in 100% C#. This is used for compression/decompression of data
|
||||
sent/received over the network. The SharpZipLib binary assembly SharpZipLib.dll should
|
||||
be installed in the same place as the mono class libraries.</li>
|
||||
|
||||
<li>Has a ConnectionString format:
|
||||
<pre>
|
||||
"Server=hostname;" +
|
||||
"Database=database;" +
|
||||
"User ID=username;" +
|
||||
"Password=password"
|
||||
</pre>
|
||||
</li>
|
||||
<li>C# Example:
|
||||
<pre>
|
||||
using System;
|
||||
using System.Data;
|
||||
using ByteFX.Data.MySQLClient;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
string connectionString =
|
||||
"Server=localhost;" +
|
||||
"Database=test;" +
|
||||
"User ID=mysql;" +
|
||||
"Password=;";
|
||||
IDbConnection dbcon;
|
||||
dbcon = new MySQLConnection(connectionString);
|
||||
IDbCommand dbcmd = dbcon.CreateCommand();
|
||||
// requires a table to be created named employee
|
||||
// with columns firstname and lastname
|
||||
// such as,
|
||||
// CREATE TABLE employee (
|
||||
// firstname varchar(32),
|
||||
// lastname varchar(32));
|
||||
string sql =
|
||||
"SELECT firstname, lastname " +
|
||||
"FROM employee";
|
||||
dbcmd.ConnectionString = sql;
|
||||
IDataReader reader = dbcmd.ExecuteReader();
|
||||
while(reader.Read()) {
|
||||
string FirstName = reader["firstname"];
|
||||
string LastName = reader["lastname"];
|
||||
Console.WriteLine("Name: " +
|
||||
FirstName + " " + LastName);
|
||||
}
|
||||
// clean up
|
||||
reader.Close();
|
||||
reader = null;
|
||||
dbcmd.Dispose();
|
||||
dbcmd = null;
|
||||
dbcon.Close();
|
||||
dbcon = null;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</li>
|
||||
<li>Building C# Example:
|
||||
<ul>
|
||||
<li>Save the example to a file, such as, TestExample.cs</li>
|
||||
<li>Build on Linux:
|
||||
<pre>
|
||||
mcs TestExample.cs -r System.Data.dll \
|
||||
-r ByteFX.Data.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>Build on Windows via Cygwin:
|
||||
<pre>
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
|
||||
TestExample.cs \
|
||||
-lib:C:/cygwin/home/MyHome/mono/install/lib \
|
||||
-r System.Data.dll -r ByteFX.Data.dll
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Running the Example:
|
||||
<pre>
|
||||
mono TestExample.exe
|
||||
</pre>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
@@ -2,51 +2,174 @@
|
||||
<ul>
|
||||
<li>Exists in namespace System.Data.Odbc and assembly System.Data
|
||||
|
||||
<li>Works on Windows and Linux
|
||||
<li>Works on Windows and Linux. Should have no problems working on UNIX too.
|
||||
|
||||
<li>Works on Windows via the native Windows odbc32.dll
|
||||
|
||||
<li>Works on Linux via <a href="http://www.unixodbc.org/">unixODBC</a>
|
||||
<li>Works on Linux via:
|
||||
|
||||
<li>List of unixODBC <a href="http://www.unixodbc.org/drivers.html">drivers</a> and
|
||||
an alternative list
|
||||
<ul>
|
||||
<li><a href="http://www.unixodbc.org/">unixODBC</a> which has
|
||||
commercial support
|
||||
from <a href="http://www.easysoft.com/">Easysoft</a></li>
|
||||
|
||||
<li><a href="http://www.iodbc.org/">iODBC</a> which has
|
||||
a commercial support
|
||||
from <a href="http://oplweb.openlinksw.com:8080/download/">OpenLink Software</a></li>
|
||||
</ul>
|
||||
|
||||
<li>An alternative to unixODBC, but not tested with this
|
||||
provider is <a href="http://www.iodbc.org">iODBC</a>
|
||||
|
||||
<li>Another alternative to unixODBC, but not tested this provider is
|
||||
<a href="http://oplweb.openlinksw.com:8080/download/">OpenLink's</a>.
|
||||
<li>List of unixODBC <a href="http://www.unixodbc.org/drivers.html">drivers</a>
|
||||
|
||||
<li>List of <a href="http://ourworld.compuserve.com/homepages/Ken_North/odbcvend.htm">ODBC Vendors</a>
|
||||
|
||||
<li>ODBC can connect to various databases which has an ODBC driver installed:
|
||||
<ul>
|
||||
<li><a href="http://www.mysql.com/">MySQL</a>
|
||||
<li><a href="http://www.postgresql.org/">PostgreSQL</a>
|
||||
<li><a href="http://www.oracle.com/">Oracle</a>
|
||||
<li><a href="http://www.borland.com/products/downloads/download_interbase.html">Interbase</a>
|
||||
<li><a href="http://www.sybase.com/downloads">Sybase</a> and
|
||||
<li><a href="http://www.microsoft.com/sql/default.asp">Microsoft SQL Server</a> (
|
||||
via <a href="http://www.freetds.org/">FreeTDS</a> on UNIX)
|
||||
<li><a href="http://www-3.ibm.com/software/data/db2/">IBM DB2 Universal Database</a>
|
||||
<li><a href="http://www.microsoft.com/office/access/default.asp">MS Access</a>
|
||||
(via <a href="http://mdbtools.sourceforge.net/">MDB Tools</a> on UNIX)
|
||||
</ul>
|
||||
|
||||
<li>ODBC Provider created by Brian Ritchie.
|
||||
<li>ODBC Provider created by Brian Ritchie.</li>
|
||||
|
||||
<li>Does not support trusted connections</li>
|
||||
</ul>
|
||||
|
||||
* Current Status
|
||||
** Current Status
|
||||
|
||||
<ul>
|
||||
<li>Connect on Windows via native Windows odbc32.dll
|
||||
|
||||
<li>Connect on Linux via unixODBC's libodbc.so
|
||||
<li>Can Connect on:
|
||||
<ul>
|
||||
<li>Windows via native Windows odbc32.dll</a></li>
|
||||
<li>Linux via:
|
||||
<ul>
|
||||
<li>unixODBC's libodbc.so</li>
|
||||
<li>iODBC's libiodbc.so</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>Various databases have been tested using their
|
||||
ODBC drivers: MySQL, Oracle, IBM DB2, and Microsoft SQL Server
|
||||
ODBC drivers: MySQL, PostgreSQL, Oracle, IBM DB2, and Microsoft SQL Server</li>
|
||||
|
||||
<li>Can execute non-query commands via ExecuteNonQuery of a OdbcCommand
|
||||
<li>Can execute non-query commands via ExecuteNonQuery of a OdbcCommand</li>
|
||||
|
||||
<li>Can execute aggreates and retrieve a single row single column result via
|
||||
ExecuteScalar of a OdbcCommand
|
||||
ExecuteScalar of a OdbcCommand</li>
|
||||
|
||||
<li>Can execute queries via ExecuteReader of a OdbcCommand and
|
||||
retrieve results using an OdbcDataReader.
|
||||
retrieve results using an OdbcDataReader</li>
|
||||
|
||||
<li>Can get a DataTable containing schema info via GetSchemaTable() in a OdbcDataReader
|
||||
<li>Can get a DataTable containing schema info via GetSchemaTable() in a OdbcDataReader</li>
|
||||
|
||||
<li>Can Fill a DataTable in a DataSet via an OdbcDataAdapter</li>
|
||||
</ul>
|
||||
|
||||
* Action Plan
|
||||
** Action Plan
|
||||
|
||||
<ul>
|
||||
<li>Create a Data Adapter to Fill data into a DataTable in a DataSet
|
||||
|
||||
<li>TODO
|
||||
<li>Fixing bugs
|
||||
|
||||
<li>Testing with other setups
|
||||
</ul>
|
||||
|
||||
** Testing ODBC provider
|
||||
|
||||
<p>Test Mono's ODBC provider System.Data.Odbc with the MySQL ODBC driver MyODBC
|
||||
|
||||
<p><ul>
|
||||
<li>Take a look at OdbcTest.cs in mcs/class/System.Data/Test</li>
|
||||
|
||||
<li>Here is a ConnectionString format if you have a DSN setup:
|
||||
<pre>
|
||||
"DSN=dataSetName;UID=username;PWD=password"
|
||||
</pre>
|
||||
</li>
|
||||
<li>Here is a ConnectionString format if you do not have DSN (have not
|
||||
gotten this to work):
|
||||
<pre>
|
||||
"DRIVER={SQL Server};SERVER=(local);UID=sa;PWD=;DATABASE=pubs"
|
||||
</pre>
|
||||
</li>
|
||||
<li>C# Example:
|
||||
<pre>
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Data.Odbc;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
// have an ODBC DSN setup named MYSQLDSN
|
||||
// that accesses a MySQL database via
|
||||
// MyODBC driver for ODBC with a
|
||||
// hostname of localhost and database test
|
||||
string connectionString =
|
||||
"DSN=MYSQLDSN;" +
|
||||
"UID=mysql;" +
|
||||
"PWD=;";
|
||||
IDbConnection dbcon;
|
||||
dbcon = new OdbcConnection(connectionString);
|
||||
IDbCommand dbcmd = dbcon.CreateCommand();
|
||||
// requires a table to be created named employee
|
||||
// with columns firstname and lastname
|
||||
// such as,
|
||||
// CREATE TABLE employee (
|
||||
// firstname varchar(32),
|
||||
// lastname varchar(32));
|
||||
string sql =
|
||||
"SELECT firstname, lastname " +
|
||||
"FROM employee";
|
||||
dbcmd.ConnectionString = sql;
|
||||
IDataReader reader = dbcmd.ExecuteReader();
|
||||
while(reader.Read()) {
|
||||
string FirstName = reader["firstname"];
|
||||
string LastName = reader["lastname"];
|
||||
Console.WriteLine("Name: " +
|
||||
FirstName + " " + LastName);
|
||||
}
|
||||
// clean up
|
||||
reader.Close();
|
||||
reader = null;
|
||||
dbcmd.Dispose();
|
||||
dbcmd = null;
|
||||
dbcon.Close();
|
||||
dbcon = null;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</li>
|
||||
<li>Building C# Example:
|
||||
<ul>
|
||||
<li>Save the example to a file, such as, TestExample.cs</li>
|
||||
<li>Build on Linux:
|
||||
<pre>
|
||||
mcs TestExample.cs -r System.Data.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>Build on Windows via Cygwin:
|
||||
<pre>
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
|
||||
TestExample.cs \
|
||||
-lib:C:/cygwin/home/MyHome/mono/install/lib \
|
||||
-r System.Data.dll
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Running the Example:
|
||||
<pre>
|
||||
mono TestExample.exe
|
||||
</pre>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -1,53 +1,142 @@
|
||||
* OLE DB Provider
|
||||
|
||||
<ul>
|
||||
<li> Provides a OleDb-like provider for Mono
|
||||
using <a href="http://www.gnome-db.org/">GDA</a> as the data access layer.
|
||||
using <a href="http://www.gnome-db.org/">GDA</a> as the data access layer.</li>
|
||||
|
||||
<li> Exists in namespace System.Data.OleDb and assembly System.Data
|
||||
<li> Exists in namespace System.Data.OleDb and assembly System.Data</li>
|
||||
|
||||
<li>Created by Rodrigo Moya
|
||||
<li>Created by Rodrigo Moya</li>
|
||||
|
||||
<li>LibGDA has providers for:
|
||||
<li>LibGDA has providers for:</li>
|
||||
<ul>
|
||||
<li><a href="http://www.mysql.com/">MySQL</a>
|
||||
<li><a href="http://www.postgresql.org/">PostgreSQL</a>
|
||||
<li>XML
|
||||
<li>ODBC (via <a href="http://www.unixodbc.org/">unixODBC</a>)
|
||||
<li><a href="http://www.oracle.com/">Oracle</a>
|
||||
<li><a href="http://www.borland.com/products/downloads/download_interbase.html">Interbase</a>
|
||||
<li><a href="http://www.mysql.com/">MySQL</a></li>
|
||||
<li><a href="http://www.postgresql.org/">PostgreSQL</a></li>
|
||||
<li>XML</li>
|
||||
<li>ODBC (via <a href="http://www.unixodbc.org/">unixODBC</a>)</li>
|
||||
<li><a href="http://www.oracle.com/">Oracle</a></li>
|
||||
<li><a href="http://www.borland.com/products/downloads/download_interbase.html">Interbase</a></li>
|
||||
<li><a href="http://www.sybase.com/downloads">Sybase</a> and
|
||||
<a href="http://www.microsoft.com/sql/default.asp">Microsoft SQL Server</a> (
|
||||
via <a href="http://www.freetds.org/">FreeTDS</a>)
|
||||
<li><a href="http://www-3.ibm.com/software/data/db2/">IBM DB2 Universal Database</a>
|
||||
<li><a href="http://www.hwaci.com/sw/sqlite/download.html">SQL Lite</a>
|
||||
<li><a href="http://www.microsoft.com/office/access/default.asp">MS Access</a>
|
||||
(via <a href="http://mdbtools.sourceforge.net/">MDB Tools</a>)
|
||||
via <a href="http://www.freetds.org/">FreeTDS</a>)</li>
|
||||
<li><a href="http://www-3.ibm.com/software/data/db2/">IBM DB2 Universal Database</a></li>
|
||||
<li><a href="http://www.hwaci.com/sw/sqlite/download.html">SQL Lite</a></li>
|
||||
<li><a href="http://www.microsoft.com/office/access/default.asp">MS Access</a></li>
|
||||
(via <a href="http://mdbtools.sourceforge.net/">MDB Tools</a>)</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>Does not support trusted connections</li>
|
||||
</ul>
|
||||
|
||||
* Current Status
|
||||
** Current Status
|
||||
<ul>
|
||||
<li>The OleDb provider is working with libgda (an OLE-DB/ADO data access for Unix).
|
||||
The C-Sharp bindings to libgda currently work - meaning they can compile, run,
|
||||
and you can connect to a
|
||||
PostgreSQL database via libgda via the C-Sharp bindings to libgda.
|
||||
PostgreSQL database via libgda via the C-Sharp bindings to libgda.</li>
|
||||
|
||||
<li>Basic
|
||||
functionality (execution of commands, data retrieval, transactions, etc) are
|
||||
now working.
|
||||
now working.</li>
|
||||
|
||||
<li>An inital implementation of GetSchemaTable() for
|
||||
the OleDbDataReader has been checked into cvs. GetSchemaTable() isn't correct for OleDb,
|
||||
but the foundation is there.
|
||||
but the foundation is there.</li>
|
||||
</ul>
|
||||
|
||||
* Action Plan
|
||||
** Action Plan
|
||||
<ul>
|
||||
<li>Current focus is on filling up the missing pieces (Data adapters
|
||||
mainly) and schema support.
|
||||
mainly) and schema support.</li>
|
||||
|
||||
<li>We need help building libgda on Windows though. libgda
|
||||
builds find on linux though.
|
||||
builds find on linux though.</li>
|
||||
|
||||
<li>Need to make the OleDb provider compatible with the OleDb provider in Microsoft .NET
|
||||
<li>Need to make the OleDb provider compatible with the OleDb provider in Microsoft .NET</li>
|
||||
</ul>
|
||||
|
||||
** Testing OleDb with libgda's PostgreSQL provider
|
||||
|
||||
<ul>
|
||||
<li>Requires a working mono and mcs</li>
|
||||
<li>Requires Linux because the OleDb provider uses libgda and libgda only
|
||||
works on Linux.</li>
|
||||
<li>Connection String format: "Provider=providerName;...". providerName is the
|
||||
name of the Provider you use, such as, PostgreSQL, MySQL, etc. The elipsis ...
|
||||
means that the connection parameters are dependent upon the provider being used and
|
||||
are passed to libgda for connecting. Such paramters, can be: Database, User ID, Password,
|
||||
Server, etc...</li>
|
||||
<li>See the test TestOleDb.cs found at mcs/class/System.Data/System.Data.OleDb</li>
|
||||
<li>C# Example for Mono's System.Data.OleDb:
|
||||
<pre>
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Data.OleDb;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
// there is a libgda PostgreSQL provider
|
||||
string connectionString =
|
||||
"Provider=PostgreSQL;" +
|
||||
"Addr=127.0.0.1;" +
|
||||
"Database=rodrigo";
|
||||
IDbConnection dbcon;
|
||||
dbcon = new OleDbConnection(connectionString);
|
||||
IDbCommand dbcmd = dbcon.CreateCommand();
|
||||
// requires a table to be created named employee
|
||||
// with columns firstname and lastname
|
||||
// such as,
|
||||
// CREATE TABLE employee (
|
||||
// firstname varchar(32),
|
||||
// lastname varchar(32));
|
||||
string sql =
|
||||
"SELECT firstname, lastname " +
|
||||
"FROM employee";
|
||||
dbcmd.ConnectionString = sql;
|
||||
IDataReader reader = dbcmd.ExecuteReader();
|
||||
while(reader.Read()) {
|
||||
string FirstName = reader["firstname"];
|
||||
string LastName = reader["lastname"];
|
||||
Console.WriteLine("Name: " +
|
||||
FirstName + " " + LastName);
|
||||
}
|
||||
// clean up
|
||||
reader.Close();
|
||||
reader = null;
|
||||
dbcmd.Dispose();
|
||||
dbcmd = null;
|
||||
dbcon.Close();
|
||||
dbcon = null;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</li>
|
||||
<li>Building C# Example:
|
||||
<ul>
|
||||
<li>Save the example to a file, such as, TestExample.cs</li>
|
||||
<li>Build on Linux:
|
||||
<pre>
|
||||
mcs TestExample.cs -r System.Data.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>Build on Windows via Cygwin:
|
||||
<pre>
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
|
||||
TestExample.cs \
|
||||
-lib:C:/cygwin/home/MyHome/mono/install/lib \
|
||||
-r System.Data.dll
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Running the Example:
|
||||
<pre>
|
||||
mono TestExample.exe
|
||||
</pre>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
Executable
+146
@@ -0,0 +1,146 @@
|
||||
* Oracle Data Provider
|
||||
|
||||
<ul>
|
||||
<li>Exists in namespace System.Data.OracleClient and assembly System.Data.OracleClient</li>
|
||||
|
||||
<li>Works on Windows</li>
|
||||
|
||||
<li>Works with Oracle 8i</li>
|
||||
|
||||
<li>More information about Oracle can be found at <a href="http://www.oracle.com/"/>here</a></li>
|
||||
|
||||
<li>Created by Daniel Morgan.</li>
|
||||
|
||||
<li>Does not support trusted connections</li>
|
||||
|
||||
</ul>
|
||||
|
||||
** Current Status
|
||||
|
||||
<ul>
|
||||
<li>OracleConnection can connect to an Oracle 8i database on
|
||||
Windows via oci.dll</li>
|
||||
|
||||
<li>The native glue library only has makefiles for Borland C++ and
|
||||
Microsoft Visual C++ command line compilers. Only the makefile for
|
||||
Microsoft Visual C++ command-line compiler has been tested.</li>
|
||||
|
||||
<li>Can execute simple DML SQL statements, such as,
|
||||
INSERT a row into the EMP table via the OracleCommand's ExecuteNonQuery method</li>
|
||||
|
||||
<li>The System.Data.OracleClient.dll assembly can be built with mcs/mono via
|
||||
the makefile.gnu for System.Data.OracleClient or csc/.net via the
|
||||
System.Data.OracleClient.build nant build file. There is also a Visual Studio.NET
|
||||
solution it too.
|
||||
|
||||
</ul>
|
||||
|
||||
** Action Plan
|
||||
|
||||
<ul>
|
||||
<li>Get the makefile for the Borland C++ compiler to work
|
||||
since the <a href="http://www.borland.com/">Borland</a> C++ compiler is
|
||||
a free download</li>
|
||||
<li>Get the native glue lib System.Data.OracleClient.ocigule.dll to be built
|
||||
using gcc on Linux. This would require that Oracle 8i client software be installed
|
||||
on Linux with the oci headers and shared libraries</li>
|
||||
<li>Be able to retrieve results via a data reader</li>
|
||||
<li>Parameters support</li>
|
||||
<li>Stored Procedures, Functions, and Packages support</li>
|
||||
<li>Be able to fill a DataTable in a DataSet via a data adapter</li>
|
||||
<li>Support for Oracle 9i</li>
|
||||
<li>Figure out how to move the unmanaged OCI handling code in
|
||||
the oci glue C library to the managed C# assembly. I have been unable
|
||||
to successfully connect to an Oracle 8i database by using Platform Invoke and
|
||||
Marshalling in C# to the oci shared library (oci.dll on Windows)</li>
|
||||
|
||||
</ul>
|
||||
|
||||
** Testing Mono.Data.OracleClient
|
||||
|
||||
<ul>
|
||||
<li>Have a working mono and mcs</li>
|
||||
|
||||
<li>Have access to an Oracle 8i database or download it from
|
||||
<a href="http://www.oracle.com/">Oracle</a>. Registration to the
|
||||
Oracle Technology Network is free. If installing on Linux, I suggest you
|
||||
do a lot of searching to see how others installed Oracle on Linux.</li>
|
||||
|
||||
<li>Make sure Mono.Data.OracleClient.dll assembly is built, if not, go
|
||||
into Mono.Data.OracleClient and do a make -f makefile.gnu (on Linux) or
|
||||
../../nant/NAnt.exe (on Cygwin).</li>
|
||||
|
||||
<li>The OCI Glue Library Mono.Data.OracleClient.ociglue.dll will need to be
|
||||
created as well. Has only been tested with lc (Microsoft Visual C++ command-line compiler).
|
||||
There is a make file for Microsoft C++ and Borland C++. I'm sure it wouldn't be hard
|
||||
to create a makefile for gcc if installing on Linux.</li>
|
||||
|
||||
<li>Take a look at TestOracleClient.cs found at mcs/class/System.Data.OracleClient/Test</li>
|
||||
|
||||
<li>Has a connection string format:
|
||||
<pre>
|
||||
"Data Source=tnsname;User ID=userid;Password=password"
|
||||
</pre>
|
||||
</li>
|
||||
<li>C# Example:
|
||||
<pre>
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Data.OracleClient;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
string connectionString =
|
||||
"Data Source=testdb;" +
|
||||
"User ID=scott;" +
|
||||
"Password=tiger;";
|
||||
IDbConnection dbcon;
|
||||
dbcon = new OracleConnection(connectionString);
|
||||
IDbCommand dbcmd = dbcon.CreateCommand();
|
||||
string sql =
|
||||
"insert into scott.emp " +
|
||||
"(empno, ename, job, sal, deptno) " +
|
||||
"values(123," +
|
||||
"'Don Smith'," +
|
||||
"'Cook'," +
|
||||
"23021," +
|
||||
"20)";
|
||||
dbcmd.ConnectionString = sql;
|
||||
dbcmd.ExecuteNonQuery();
|
||||
dbcmd.Dispose();
|
||||
dbcmd = null;
|
||||
dbcon.Close();
|
||||
dbcon = null;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</li>
|
||||
<li>Building C# Example:
|
||||
<ul>
|
||||
<li>Save the example to a file, such as, TestExample.cs</li>
|
||||
<li>Build on Linux:
|
||||
<pre>
|
||||
mcs TestExample.cs -r System.Data.dll \
|
||||
-r System.Data.OracleClient.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>Build on Windows via Cygwin:
|
||||
<pre>
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
|
||||
TestExample.cs \
|
||||
-lib:C:/cygwin/home/MyHome/mono/install/lib \
|
||||
-r System.Data.dll -r System.Data.OracleClient.dll
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Running the Example:
|
||||
<pre>
|
||||
mono TestExample.exe
|
||||
</pre>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
+194
-214
@@ -1,16 +1,27 @@
|
||||
* PostgreSQL Data Provider
|
||||
|
||||
<ul>
|
||||
<li>Exists in namespace Mono.Data.PostgreSql and assembly Mono.Data.PostgreSql
|
||||
<li>Exists in namespace Mono.Data.PostgreSql and assembly Mono.Data.PostgreSql</li>
|
||||
|
||||
<li>Is a Mono Data Provider for the <a href="http://www.postgresql.org/">PostgreSQL</a>
|
||||
client/server database management system.
|
||||
client/server database management system.</li>
|
||||
|
||||
<li>Written in C# and has C# bindings to the PostgreSQL C Client library pq.dll on Windows
|
||||
and libpq.so on Linux.
|
||||
and libpq.so on Linux.</li>
|
||||
|
||||
<li>Alternative to the PostgreSQL provider in Mono:
|
||||
<ul>
|
||||
<li><a href="http://gborg.postgresql.org/project/npgsql/projdisplay.php">Npgsql</a>
|
||||
is a Managed PostgreSQL provider written in 100% C#, does not require a client library,
|
||||
and works on Microsoft .NET and Mono.
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>See Testing for both Mono's Mono.Data.PostgreSqlClient and Npgsql.</li>
|
||||
</ul>
|
||||
|
||||
* Current Status
|
||||
** Current Status
|
||||
|
||||
<ul>
|
||||
<li>We are able to do simple CREATE TABLE, DROP TABLE, UPDATE, INSERT, and
|
||||
@@ -70,12 +81,23 @@
|
||||
See the test mcs/class/System.Data/Test/TestSqlDataAdapter.cs to see it in action.
|
||||
</ul>
|
||||
|
||||
* Testing the PostgreSQL Provider
|
||||
** Action Plan
|
||||
|
||||
<p>More testing and fixing bugs...
|
||||
|
||||
<p>Eventually replace the PostgreSQL data provider in Mono
|
||||
with <a href="http://gborg.postgresql.org/project/npgsql/projdisplay.php">Npgsql</a>.
|
||||
Npgsql is a .Net Data Provider for PostgreSQL which implements
|
||||
the <a href="http://developer.postgresql.org/docs/postgres/protocol.html">PostgreSQL Frontend/Backend Protocol</a>.
|
||||
Npgsql is implemented in 100% C#. This provider was created by Francisco Figueiredo jr.
|
||||
and has many programmers developing the provider.
|
||||
|
||||
** Testing Mono's Mono.Data.PostgreSqlClient
|
||||
|
||||
<ul>
|
||||
* <p>In order to test Mono.Data.PostgreSqlClient, you will need to have
|
||||
access to a remote PostgreSQL DBMS, or you will have to install
|
||||
one locally. PostgreSQL was first ADO.NET provider created in Mono.
|
||||
one locally. PostgreSQL was the first ADO.NET provider created in Mono.
|
||||
|
||||
<p>Why use PostgreSQL? Because it is free software, has a client
|
||||
library that is easy to use, PostgreSQL is easy to install on
|
||||
@@ -94,7 +116,9 @@
|
||||
user "postgres".
|
||||
|
||||
<pre>
|
||||
"host=localhost;dbname=test;user=postgres"
|
||||
"Server=localhost;Database=test;User ID=postgres;Password=fun2db"
|
||||
(or)
|
||||
"host=localhost;dbname=test;user=postgres;password=fun2db"
|
||||
</pre>
|
||||
</ul>
|
||||
|
||||
@@ -179,9 +203,15 @@ create user postgres with password 'fun2db';
|
||||
* <p>Important notes from this file are:
|
||||
|
||||
<ul>
|
||||
<p><b>2.</b> - Install the latest <a href="http://www.neuro.gatech.edu/users/cwilson/cygutils/OBSOLETE/V1.1/cygipc/index.html">CygIPC</a> package.
|
||||
<p><b>2.</b> - Install the latest <a href="http://www.neuro.gatech.edu/users/cwilson/cygutils/cygipc/index.html">CygIPC</a> package.
|
||||
Cygwin includes a utility bunzip2 which can be used to unzip it. Now, change to
|
||||
the root directory by
|
||||
typing "cd /" then
|
||||
you can use "tar xvf cygipc.xxx.tar" to untar it
|
||||
in the root directory in cygwin.
|
||||
|
||||
<p>The cygipc package contains the ipc-daemon you will need
|
||||
<p>The cygipc package contains the support to run ipc-daemon
|
||||
that you will need
|
||||
to run before you can
|
||||
run the PostgreSQL DBMS Server daemon (postmaster) or run
|
||||
initdb which initializes the PostgreSQL database.
|
||||
@@ -267,34 +297,9 @@ create user postgres with password 'fun2db';
|
||||
</ul>
|
||||
|
||||
<p>In the path mcs/class/System.Data/Test
|
||||
there is a PostgreSQL test program named
|
||||
there is a test for Mono.Data.PostgreSqlClient named
|
||||
PostgreTest.cs. Thanks goes to Gonzalo for creating the original
|
||||
PostgreSQL test.
|
||||
|
||||
<p>To use it to test System.Data, you
|
||||
modify the file to your PostgreSQL database
|
||||
connection requirements:
|
||||
|
||||
<p>
|
||||
<ul>
|
||||
<li><b>dbname</b> database, ie., test</li>
|
||||
<li><b>host</b> hostname of the PostgreSQL DBMS Server, ie., localhost</li>
|
||||
<li><b>user</b> username, ie., someuser</li>
|
||||
<li><b>password</b> password, ie., mypass1234</li>
|
||||
</ul>
|
||||
|
||||
<p>The connection string is in OLE-DB connection string format. Internally,
|
||||
SqlConnection converts this to the PostgreSQL connection string format.
|
||||
|
||||
<p>
|
||||
<pre>
|
||||
OLE-DB: "host=localhost;dbname=test;user=joe;password=smoe"
|
||||
PostgreSQL: "host=localhost dbname=test user=joe password=smoe"
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
Note that OLE-DB includes the semicolons while PostgreSQL's connection
|
||||
string does not.
|
||||
|
||||
<p>
|
||||
To compile the PostgresTest.cs program, do:
|
||||
@@ -310,7 +315,7 @@ PostgreSQL: "host=localhost dbname=test user=joe password=smoe"
|
||||
to PgSqlConnection, then you need to run mcs like:
|
||||
|
||||
<pre>
|
||||
mono f:/cygwin/home/DanielMorgan/mono/install/bin/mcs.exe \
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
|
||||
PostgresTest.cs \
|
||||
-r System.Data.dll \
|
||||
-r Mono.Data.PostgreSqlClient.dll
|
||||
@@ -328,185 +333,160 @@ mint PostgresTest.exe
|
||||
To run using mono, do:
|
||||
<pre>
|
||||
mono PostgresTest.exe
|
||||
</pre>
|
||||
|
||||
<p>C# Example for Mono.Data.PostgreSqlClient:
|
||||
<pre>
|
||||
using System;
|
||||
using System.Data;
|
||||
using Mono.Data.PostgreSqlClient;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
string connectionString =
|
||||
"Server=localhost;" +
|
||||
"Database=test;" +
|
||||
"User ID=postgres;" +
|
||||
"Password=fun2db;";
|
||||
IDbConnection dbcon;
|
||||
dbcon = new PgConnection(connectionString);
|
||||
IDbCommand dbcmd = dbcon.CreateCommand();
|
||||
// requires a table to be created named employee
|
||||
// with columns firstname and lastname
|
||||
// such as,
|
||||
// CREATE TABLE employee (
|
||||
// firstname varchar(32),
|
||||
// lastname varchar(32));
|
||||
string sql =
|
||||
"SELECT firstname, lastname" +
|
||||
"FROM employee";
|
||||
dbcmd.ConnectionString = sql;
|
||||
IDataReader reader = dbcmd.ExecuteReader();
|
||||
while(reader.Read()) {
|
||||
string FirstName = reader["firstname"];
|
||||
string LastName = reader["lastname"];
|
||||
Console.WriteLine("Name: " +
|
||||
FirstName + " " + LastName);
|
||||
}
|
||||
// clean up
|
||||
reader.Close();
|
||||
reader = null;
|
||||
dbcmd.Dispose();
|
||||
dbcmd = null;
|
||||
dbcon.Close();
|
||||
dbcon = null;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
|
||||
<p>Below, I show how the output from PostgresTest. I have omitted a lot
|
||||
of the meta data for the columns except two columns. The classes
|
||||
used were from Mono.Data.PostgreSqlClient and were used to connect to a
|
||||
PostgreSQL database and retrieve data.
|
||||
|
||||
<p>
|
||||
<pre>
|
||||
|
||||
danmorg@DANPC ~/mono/mcs/class/System.Data/Test
|
||||
$ mcs PostgresTest.cs -r System.Data.dll
|
||||
|
||||
danmorg@DANPC ~/mono/mcs/class/System.Data/Test
|
||||
$ mono PostgresTest.exe
|
||||
Postgres provider specific tests...
|
||||
|
||||
Drop table:
|
||||
Error (don't worry about this one)SqlError:PGRES_FATAL_ERROR ERROR:
|
||||
table "mono_postgres_test" does not exist
|
||||
<Stack Trace>
|
||||
|
||||
Create table with all supported types:
|
||||
OK
|
||||
Insert values for all known types:
|
||||
OK
|
||||
Update values:
|
||||
OK
|
||||
Insert values for all known types:
|
||||
OK
|
||||
Aggregate: count(*)
|
||||
Agg Result: 2
|
||||
Aggregate: min(text_value)
|
||||
Agg Result: This is a text
|
||||
Aggregate: max(int4_value)
|
||||
Agg Result: 1048000
|
||||
Aggregate: sum(int4_value)
|
||||
Agg Result: 1048003
|
||||
Select values from the database:
|
||||
Result is from a SELECT SQL Query. Records Affected: -1
|
||||
Result Set 1...
|
||||
Total Columns: 28
|
||||
ColumnName = boolean_value
|
||||
ColumnOrdinal = 1
|
||||
ColumnSize = 1
|
||||
NumericPrecision = 0
|
||||
NumericScale = 0
|
||||
IsUnique = False
|
||||
IsKey =
|
||||
BaseCatalogName =
|
||||
BaseColumnName = boolean_value
|
||||
BaseSchemaName =
|
||||
BaseTableName =
|
||||
DataType = System.Boolean
|
||||
AllowDBNull = False
|
||||
ProviderType = 16
|
||||
IsAliased = False
|
||||
IsExpression = False
|
||||
IsIdentity = False
|
||||
IsAutoIncrement = False
|
||||
IsRowVersion = False
|
||||
IsHidden = False
|
||||
IsLong = False
|
||||
IsReadOnly = False
|
||||
|
||||
...
|
||||
|
||||
ColumnName = null_timestamp_value
|
||||
ColumnOrdinal = 28
|
||||
ColumnSize = 8
|
||||
NumericPrecision = 0
|
||||
NumericScale = 0
|
||||
IsUnique = False
|
||||
IsKey =
|
||||
BaseCatalogName =
|
||||
BaseColumnName = null_timestamp_value
|
||||
BaseSchemaName =
|
||||
BaseTableName =
|
||||
DataType = System.DateTime
|
||||
AllowDBNull = False
|
||||
ProviderType = 1184
|
||||
IsAliased = False
|
||||
IsExpression = False
|
||||
IsIdentity = False
|
||||
IsAutoIncrement = False
|
||||
IsRowVersion = False
|
||||
IsHidden = False
|
||||
IsLong = False
|
||||
IsReadOnly = False
|
||||
|
||||
Gonna do a Read() now...
|
||||
Row 0:
|
||||
Col 0: boolean_value: False
|
||||
Col 1: int2_value: 5
|
||||
Col 2: int4_value: 3
|
||||
Col 3: bigint_value: 9
|
||||
Col 4: float_value: 3.141590
|
||||
Col 5: double_value: 3.14159
|
||||
Col 6: numeric_value: 123456789012.345
|
||||
Col 7: char_value: Mono.Data!
|
||||
Col 8: varchar_value: It was not me!
|
||||
Col 9: text_value: We got data!
|
||||
Col 10: point_value: (1,0)
|
||||
Col 11: time_value: 01/01/1 21:13:14
|
||||
Col 12: date_value: 02/29/2000 00:00:00
|
||||
Col 13: timestamp_value: 02/29/2004 14:00:11
|
||||
Col 14: null_boolean_value is NULL
|
||||
Col 15: null_int2_value is NULL
|
||||
Col 16: null_int4_value is NULL
|
||||
Col 17: null_bigint_value is NULL
|
||||
Col 18: null_float_value is NULL
|
||||
Col 19: null_double_value is NULL
|
||||
Col 20: null_numeric_value is NULL
|
||||
Col 21: null_char_value is NULL
|
||||
Col 22: null_varchar_value is NULL
|
||||
Col 23: null_text_value is NULL
|
||||
Col 24: null_point_value is NULL
|
||||
Col 25: null_time_value is NULL
|
||||
Col 26: null_date_value is NULL
|
||||
Col 27: null_timestamp_value is NULL
|
||||
Row 1:
|
||||
Col 0: boolean_value: True
|
||||
Col 1: int2_value: -22
|
||||
Col 2: int4_value: 1048000
|
||||
Col 3: bigint_value: 123456789012345
|
||||
Col 4: float_value: 3.141590
|
||||
Col 5: double_value: 3.14159
|
||||
Col 6: numeric_value: 123456789012.345
|
||||
Col 7: char_value: This is a char
|
||||
Col 8: varchar_value: This is a varchar
|
||||
Col 9: text_value: This is a text
|
||||
Col 10: point_value: (1,0)
|
||||
Col 11: time_value: 01/01/1 21:13:14
|
||||
Col 12: date_value: 02/29/2000 00:00:00
|
||||
Col 13: timestamp_value: 02/29/2004 14:00:11
|
||||
Col 14: null_boolean_value is NULL
|
||||
Col 15: null_int2_value is NULL
|
||||
Col 16: null_int4_value is NULL
|
||||
Col 17: null_bigint_value is NULL
|
||||
Col 18: null_float_value is NULL
|
||||
Col 19: null_double_value is NULL
|
||||
Col 20: null_numeric_value is NULL
|
||||
Col 21: null_char_value is NULL
|
||||
Col 22: null_varchar_value is NULL
|
||||
Col 23: null_text_value is NULL
|
||||
Col 24: null_point_value is NULL
|
||||
Col 25: null_time_value is NULL
|
||||
Col 26: null_date_value is NULL
|
||||
Col 27: null_timestamp_value is NULL
|
||||
Total Rows Retrieved: 2
|
||||
Total Result sets: 1
|
||||
Call ExecuteReader with a SQL Command.
|
||||
(Not INSERT,UPDATE,DELETE
|
||||
).
|
||||
Result is from a SQL Command not (INSERT,UPDATE,DELETE).
|
||||
Records Affected: -1
|
||||
Total Result sets: 0
|
||||
Call ExecuteReader with a SQL Command.
|
||||
(Is INSERT,UPDATE,DELETE)
|
||||
.
|
||||
Result is from a SQL Command (INSERT,UPDATE,DELETE). Records Affected: 1
|
||||
Total Result sets: 0
|
||||
Calling stored procedure version()
|
||||
Result: PostgreSQL 7.2.1 on i686-pc-cygwin, compiled by GCC 2.95.3-5
|
||||
Database Server Version: PostgreSQL 7.2.1 on i686-pc-cygwin,
|
||||
compiled by GCC 2.9
|
||||
5.3-5
|
||||
Clean up...
|
||||
Drop table...
|
||||
OK
|
||||
RESULT: 0
|
||||
|
||||
</li>
|
||||
<li>Building C# Example:
|
||||
<ul>
|
||||
<li>Save the example to a file, such as, TestExample.cs</li>
|
||||
<li>Build on Linux:
|
||||
<pre>
|
||||
mcs TestExample.cs -r System.Data.dll \
|
||||
-r Mono.Data.PostgreSqlClient.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>Build on Windows via Cygwin:
|
||||
<pre>
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
|
||||
TestExample.cs \
|
||||
-lib:C:/cygwin/home/MyHome/mono/install/lib \
|
||||
-r System.Data.dll -r Mono.Data.PostgreSqlClient.dll
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Running the Example:
|
||||
<pre>
|
||||
mono TestExample.exe
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
* Action Plan
|
||||
** Testing Npgsql
|
||||
|
||||
<p>Eventually replace the PostgreSQL data provider in Mono
|
||||
with <a href="http://gborg.postgresql.org/project/npgsql/projdisplay.php">Npgsql</a>.
|
||||
Npgsql is a .Net Data Provider for PostgreSQL which implements
|
||||
the <a href="http://developer.postgresql.org/docs/postgres/protocol.html">PostgreSQL Frontend/Backend Protocol</a>.
|
||||
Npgsql is implemented in 100% C#. This provider was created by Francisco Figueiredo jr.
|
||||
and has many programmers developing the provider.
|
||||
<ul>
|
||||
<li>Have a working mono and mcs</li>
|
||||
|
||||
<li>Get <a href="http://gborg.postgresql.org/project/npgsql/projdisplay.php">Npgsql</a>
|
||||
and make sure the binary assembly Npgsql.dll is installed in the same place that the
|
||||
mono class libraries are located.
|
||||
|
||||
<li>Read the Testing notes for Mono.Data.PostgreSqlClient too
|
||||
|
||||
<li>C# Example for Npgsql:
|
||||
<pre>
|
||||
using System;
|
||||
using System.Data;
|
||||
using Npgsql;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
string connectionString =
|
||||
"Server=localhost;" +
|
||||
"Database=test;" +
|
||||
"User ID=postgres;" +
|
||||
"Password=fun2db;";
|
||||
IDbConnection dbcon;
|
||||
dbcon = new NpgsqlConnection(connectionString);
|
||||
IDbCommand dbcmd = dbcon.CreateCommand();
|
||||
// requires a table to be created named employee
|
||||
// with columns firstname and lastname
|
||||
// such as,
|
||||
// CREATE TABLE employee (
|
||||
// firstname varchar(32),
|
||||
// lastname varchar(32));
|
||||
string sql =
|
||||
"SELECT firstname, lastname " +
|
||||
"FROM employee";
|
||||
dbcmd.ConnectionString = sql;
|
||||
IDataReader reader = dbcmd.ExecuteReader();
|
||||
while(reader.Read()) {
|
||||
string FirstName = reader["firstname"];
|
||||
string LastName = reader["lastname"];
|
||||
Console.WriteLine("Name: " +
|
||||
FirstName + " " + LastName);
|
||||
}
|
||||
// clean up
|
||||
reader.Close();
|
||||
reader = null;
|
||||
dbcmd.Dispose();
|
||||
dbcmd = null;
|
||||
dbcon.Close();
|
||||
dbcon = null;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</li>
|
||||
<li>Building C# Example:
|
||||
<ul>
|
||||
<li>Save the example to a file, such as, TestExample.cs</li>
|
||||
<li>Build on Linux:
|
||||
<pre>
|
||||
mcs TestExample.cs -r System.Data.dll \
|
||||
-r Npgsql.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>Build on Windows via Cygwin:
|
||||
<pre>
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
|
||||
TestExample.cs \
|
||||
-lib:C:/cygwin/home/MyHome/mono/install/lib \
|
||||
-r System.Data.dll -r Npgsql.dll
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Running the Example:
|
||||
<pre>
|
||||
mono TestExample.exe
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
+55
-27
@@ -11,9 +11,13 @@
|
||||
|
||||
The <a href="http://msdn.microsoft.com/net">Microsoft.NET site.</a>
|
||||
|
||||
The Microsoft .NET Framework 1.0 can be downloaded <a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true">here</a>
|
||||
The Microsoft .NET Framework 1.0 can be downloaded <a
|
||||
href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true">here</a>
|
||||
|
||||
New methods that are not documented in 1.0, are documented <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/framewrkaddend.asp">here</a>
|
||||
New methods that are not documented in 1.0, are documented <a
|
||||
href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/framewrkaddend.asp">here</a>
|
||||
|
||||
The changes between .NET 1.0 and .NET 1.1 are available <a href="http://www.csharphelp.com/archives2/archive406.html">here</a>
|
||||
|
||||
** IRC
|
||||
|
||||
@@ -24,7 +28,7 @@
|
||||
|
||||
The Mono Tutorial:
|
||||
|
||||
<a href="http://mwh.sysrq.dk/the_mono_tutorial/">Mono Tutorial</a>
|
||||
<a href="http://http://go-mono.com/gnometutorial/">GNOME.NET Tutorial</a>
|
||||
|
||||
and other useful tutorials (Gtk#, Glade#, Embeded, etc) (in Spanish) at
|
||||
|
||||
@@ -53,6 +57,14 @@
|
||||
href="http://www.foundstone.com/pdf/dotnet-security-framework.pdf">.NET
|
||||
security architecture</a>.
|
||||
|
||||
** Development Tools
|
||||
|
||||
A tool to compare two assemblies:
|
||||
|
||||
<ul>
|
||||
<li><a href="http://www.gotdotnet.com/userarea/keywordsrch.aspx?keyword=winchurn">http://www.gotdotnet.com/userarea/keywordsrch.aspx?keyword=winchurn</a>
|
||||
</ul>
|
||||
|
||||
** Presentations
|
||||
|
||||
Currently the <a href="Presentations/O-Reilly">O'Reilly</a>
|
||||
@@ -111,31 +123,53 @@
|
||||
|
||||
There are a number of related projects to Mono:
|
||||
|
||||
<li><b>Development tools</b></li>
|
||||
<ul>
|
||||
|
||||
* <a
|
||||
href="http://qtcsharp.sourceforge.net">Qt#:</a>
|
||||
C# bindings for the Qt toolkit.
|
||||
|
||||
* <a
|
||||
href="http://www.icsharpcode.net/OpenSource/SD/default.asp">Sharp
|
||||
Develop:</a> an IDE for the C# language written in C#.
|
||||
|
||||
* <a
|
||||
href="http://www.improve-technologies.com/alpha/esharp/">Eclipse
|
||||
Plugin for C#</a>
|
||||
|
||||
* <a
|
||||
href="http://janet-js.sourceforge.net/">Janet:</a>
|
||||
an implemention of ECMAScript (the standarized
|
||||
version of JavaScript) in C#
|
||||
* <a href="http://nunit.sourceforge.net">NUnit:</a> A
|
||||
testing framework for .NET classes.
|
||||
|
||||
* <a
|
||||
href="http://xmarks.sourceforge.net/doc.html">XMarks DOC.NET:</a> For
|
||||
creating online documentation you can browse for your own classes.
|
||||
|
||||
* <a href="http://nunit.sourceforge.net">NUnit:</a> A
|
||||
testing framework for .NET classes.
|
||||
</ul>
|
||||
|
||||
<li><b>Class Libraries</b></li>
|
||||
<ul>
|
||||
* <a href="http://9mm.com/~ogl/sdldotnet/">SDL for
|
||||
.NET:</a> Bindings for the popular SDL graphics library.
|
||||
|
||||
|
||||
* C# bindings for OpenGL and SDL are available here: <a
|
||||
href="http://csgl.sourceforge.net">http://csgl.sourceforge.net</a>
|
||||
|
||||
* <a
|
||||
href="http://qtcsharp.sourceforge.net">Qt#:</a>
|
||||
C# bindings for the Qt toolkit.
|
||||
|
||||
* <a
|
||||
href="http://codigolivre.org.br/projects/monoqle">Project MonoQLE:</a> a C# Message Queue Server.
|
||||
Sorry only in portuguese, for now.
|
||||
|
||||
</ul>
|
||||
|
||||
<li><b>Programming languages:</b></li>
|
||||
<ul>
|
||||
* <a
|
||||
href="http://janet-js.sourceforge.net/">Janet:</a>
|
||||
an implemention of ECMAScript (the standarized
|
||||
version of JavaScript) in C#
|
||||
</ul>
|
||||
|
||||
<li><b>Other projects</b></li>
|
||||
<ul>
|
||||
* <a
|
||||
href="http://www.improve-technologies.com/alpha/esharp/">Eclipse
|
||||
Plugin for C#</a>
|
||||
|
||||
* <a href="http://www.kaffe.org">Kaffe:</a> A popular
|
||||
Free Software JIT engine for Java.
|
||||
@@ -143,19 +177,13 @@
|
||||
* <a href="http://www.intel.com/research/mrl/orp">ORP:</a> A research
|
||||
JIT/VM/GC system from Intel.
|
||||
|
||||
* C# bindings for OpenGL and SDL are available here: <a
|
||||
href="http://csgl.sourceforge.net">http://csgl.sourceforge.net</a>
|
||||
|
||||
* <a
|
||||
href="http://www.southern-storm.com.au/portable_net.html">Portable.NET:</a>
|
||||
Another implementation of the CLI and C# compiler.
|
||||
|
||||
* A Free (GFDL) tutorial on C# in Spanish with examples, slides, and extras (under development). Get it <a href="http://geneura.ugr.es/~jaime/csharp/">here</a>.
|
||||
|
||||
* <a
|
||||
href="http://codigolivre.org.br/projects/monoqle">Project MonoQLE:</a> a C# Message Queue Server.
|
||||
Sorry only in portuguese, for now.
|
||||
|
||||
* A Free (GFDL) tutorial on C# in Spanish with
|
||||
examples, slides, and extras (under development). Get it <a
|
||||
href="http://geneura.ugr.es/~jaime/csharp/">here</a>.
|
||||
</ul>
|
||||
|
||||
** GNOME Documentation
|
||||
|
||||
+112
-23
@@ -1,58 +1,147 @@
|
||||
* Microsoft SQL Server Provider
|
||||
|
||||
<ul>
|
||||
<li>ADO.NET Provider for Microsoft SQL Server 7/2000 databases
|
||||
<li>ADO.NET Provider for Microsoft SQL Server 7/2000 databases</li>
|
||||
|
||||
<li>Exists in namespace System.Data.SqlClient and assembly System.Data
|
||||
<li>Exists in namespace System.Data.SqlClient and assembly System.Data</li>
|
||||
|
||||
<li>Created by Tim Coleman
|
||||
<li>Created by Tim Coleman</li>
|
||||
|
||||
<li>Used the <a href="http://www.freetds.org/">FreeTDS</a> and
|
||||
<a href="http://jtds.sourceforge.net/">jTDS</a> projects as resources.
|
||||
<a href="http://jtds.sourceforge.net/">jTDS</a> projects as resources.</li>
|
||||
|
||||
<li>Implemented in 100% C#
|
||||
<li>Implemented in 100% C#</li>
|
||||
|
||||
<li>Is similar to the Mono.Data.TdsClient and Mono.Data.SybaseClient providers.
|
||||
<li>Is similar to the Mono.Data.TdsClient and Mono.Data.SybaseClient providers.</li>
|
||||
|
||||
<li>Requires the assembly Mono.Data.Tds.dll which implements the TDS protocol in 100% C#.</li>
|
||||
|
||||
<li>Uses TDS Protocol Version 7.0</li>
|
||||
|
||||
<li>Does not support trusted connections</li>
|
||||
</ul>
|
||||
|
||||
* Current Status
|
||||
|
||||
|
||||
** Current Status
|
||||
|
||||
|
||||
<ul>
|
||||
<li>Able to connect to Microsoft SQL Server 7/2000 databases
|
||||
<li>Able to connect to Microsoft SQL Server 7/2000 databases</li>
|
||||
|
||||
<li>Connection pooling works.
|
||||
<li>Connection pooling works.</li>
|
||||
|
||||
<li>Stored Procedures work
|
||||
<li>Stored Procedures work</li>
|
||||
|
||||
<li>Parameters work.
|
||||
<li>Parameters work.</li>
|
||||
|
||||
<li>Prepare works.
|
||||
<li>Prepare works.</li>
|
||||
|
||||
<li>SQL commands can be executed
|
||||
via ExecuteNonQuery() of a SqlCommand.
|
||||
via ExecuteNonQuery() of a SqlCommand.</li>
|
||||
|
||||
<li>SQL aggregates can be executed and a single row and single column
|
||||
result can be retrieved via ExecuteScalar() of a SqlCommand
|
||||
result can be retrieved via ExecuteScalar() of a SqlCommand</li>
|
||||
|
||||
<li>SQL queries can be executed via ExecuteReader() and results
|
||||
can be retrieved via SqlDataReader.
|
||||
can be retrieved via SqlDataReader.</li>
|
||||
|
||||
<li>a DataTable with schema info about a result can be gotten via GetSchemaTable()
|
||||
in a SqlDataReader
|
||||
in a SqlDataReader</li>
|
||||
|
||||
<li>XML can be read via ExecuteXmlReader in a SqlCommand.
|
||||
<li>XML can be read via ExecuteXmlReader in a SqlCommand.</li>
|
||||
|
||||
<li>Data can be filled in a DataTable in a DataSet via a SqlDataAdapter
|
||||
<li>Data can be filled in a DataTable in a DataSet via a SqlDataAdapter</li>
|
||||
|
||||
<li>Uses TDS Protocol Version 7.0
|
||||
<li>Uses TDS Protocol Version 7.0</li>
|
||||
|
||||
<li><a href="http://www.go-mono.com/tds-providers.html">Design of the Microsoft SQL Server, Sybase, and TDS Providers in Mono</a>
|
||||
<li><a href="http://www.go-mono.com/tds-providers.html">Design of the Microsoft SQL Server, Sybase, and TDS Providers in Mono</a></li>
|
||||
</ul>
|
||||
|
||||
* Action plan
|
||||
** Action plan
|
||||
|
||||
<ul>
|
||||
<li>Connection timeouts is being developed now.
|
||||
|
||||
<li>TODO
|
||||
<li>Needs more testing...
|
||||
|
||||
</ul>
|
||||
|
||||
** Testing
|
||||
|
||||
<ul>
|
||||
<li>Have a working mono and mcs installed</li>
|
||||
|
||||
<li>Have access to a Microsoft SQL Server database
|
||||
or either download it:
|
||||
<ul>
|
||||
<li><a href="http://www.microsoft.com/sql/default.asp">Microsoft SQL Server</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>Located at mcs/class/System.Data/Test is a test for System.Data.SqlClient
|
||||
named SqlTest.cs and you could use this as a basis for your test.</li>
|
||||
|
||||
<li>C# Example:
|
||||
<pre>
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
string connectionString =
|
||||
"Server=localhost;" +
|
||||
"Database=pubs;" +
|
||||
"User ID=sa;" +
|
||||
"Password=;";
|
||||
IDbConnection dbcon;
|
||||
dbcon = new SqlConnection(connectionString);
|
||||
IDbCommand dbcmd = dbcon.CreateCommand();
|
||||
string sql =
|
||||
"SELECT fname, lname " +
|
||||
"FROM employee";
|
||||
dbcmd.ConnectionString = sql;
|
||||
IDataReader reader = dbcmd.ExecuteReader();
|
||||
while(reader.Read()) {
|
||||
string FirstName = reader["fname"];
|
||||
string LastName = reader["lname"];
|
||||
Console.WriteLine("Name: " +
|
||||
FirstName + " " + LastName);
|
||||
}
|
||||
// clean up
|
||||
reader.Close();
|
||||
reader = null;
|
||||
dbcmd.Dispose();
|
||||
dbcmd = null;
|
||||
dbcon.Close();
|
||||
dbcon = null;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</li>
|
||||
<li>Building C# Example:
|
||||
<ul>
|
||||
<li>Save the example to a file, such as, TestExample.cs</li>
|
||||
<li>Build on Linux:
|
||||
<pre>
|
||||
mcs TestExample.cs -r System.Data.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>Build on Windows via Cygwin:
|
||||
<pre>
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
|
||||
TestExample.cs -r System.Data.dll
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Running the Example:
|
||||
<pre>
|
||||
mono TestExample.exe
|
||||
</pre>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
+93
-9
@@ -1,28 +1,112 @@
|
||||
* SQL Lite Data Provider
|
||||
|
||||
<ul>
|
||||
<li>Exists in namespace and assembly Mono.Data.SqliteClient
|
||||
<li>Exists in namespace and assembly Mono.Data.SqliteClient</li>
|
||||
|
||||
<li>Created by Vladimir Vukicevic
|
||||
<li>Created by Vladimir Vukicevic</li>
|
||||
|
||||
<li><a href"http://www.hwaci.com/sw/sqlite/download.html">SQL Lite</a>
|
||||
binaries exist for Linux and Windows. sqlite.dll on Windows
|
||||
and sqlite.so on Linux.
|
||||
and sqlite.so on Linux.</li>
|
||||
</ul>
|
||||
|
||||
* Current Status
|
||||
** Current Status
|
||||
|
||||
<ul>
|
||||
<li>Able to connect, execute commands, and retrieve data...
|
||||
<li>Able to connect, execute commands, and retrieve data...</li>
|
||||
|
||||
<li>Works in mPhoto
|
||||
<li>Works in mPhoto by providing access to a SQL Lite database to store images.</li>
|
||||
</ul>
|
||||
|
||||
* Action Plan
|
||||
** Action Plan
|
||||
|
||||
<ul>
|
||||
<li>Create a DataAdapter for SQL Lite named SqliteDataAdapter that can be used to
|
||||
Fill a DataTable in a DataSet
|
||||
Fill a DataTable in a DataSet</li>
|
||||
|
||||
<li>TODO
|
||||
<li>Get the method GetSchemaTable() in class SqliteDataReader to return a DataTable
|
||||
that works</li>
|
||||
</ul>
|
||||
|
||||
** Testing
|
||||
|
||||
<ul>
|
||||
<li>Have a working mcs and mono</li>
|
||||
<li>Make sure Mono.Data.SqliteClient.dll was built and is installed
|
||||
in the same place as the mono class libraries.</li>
|
||||
<li>If you do not have <a href"http://www.hwaci.com/sw/sqlite/download.html">SQL Lite</a>,
|
||||
download it. There are binaries for Windows and Linux.</li>
|
||||
<li>There is a test named SqliteTest.cs found at mcs/class/Mono.Data.SqliteTest/Test</li>
|
||||
<li>Has a connection string format of "URI=file:some/path". For example,
|
||||
the connection string "URI=file:SqliteTest.db" will use the database file
|
||||
named SqliteTest.db, if it does not exist, the file will be created.</li>
|
||||
<li>C# Example:
|
||||
<pre>
|
||||
using System;
|
||||
using System.Data;
|
||||
using Mono.Data.SqliteClient;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
string connectionString = "URI=file:SqliteTest.db";
|
||||
IDbConnection dbcon;
|
||||
dbcon = new MySQLConnection(connectionString);
|
||||
IDbCommand dbcmd = dbcon.CreateCommand();
|
||||
// requires a table to be created named employee
|
||||
// with columns firstname and lastname
|
||||
// such as,
|
||||
// CREATE TABLE employee (
|
||||
// firstname varchar(32),
|
||||
// lastname varchar(32));
|
||||
string sql =
|
||||
"SELECT firstname, lastname " +
|
||||
"FROM employee";
|
||||
dbcmd.ConnectionString = sql;
|
||||
IDataReader reader = dbcmd.ExecuteReader();
|
||||
while(reader.Read()) {
|
||||
string FirstName = reader[0];
|
||||
string LastName = reader[1];
|
||||
Console.WriteLine("Name: " +
|
||||
FirstName + " " + LastName);
|
||||
}
|
||||
// clean up
|
||||
reader.Close();
|
||||
reader = null;
|
||||
dbcmd.Dispose();
|
||||
dbcmd = null;
|
||||
dbcon.Close();
|
||||
dbcon = null;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</li>
|
||||
<li>Building C# Example:
|
||||
<ul>
|
||||
<li>Save the example to a file, such as, TestExample.cs</li>
|
||||
<li>Build on Linux:
|
||||
<pre>
|
||||
mcs TestExample.cs -r System.Data.dll \
|
||||
-r Mono.Data.SqliteClient.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>Build on Windows via Cygwin:
|
||||
<pre>
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
|
||||
TestExample.cs \
|
||||
-lib:C:/cygwin/home/MyHome/mono/install/lib \
|
||||
-r System.Data.dll \
|
||||
-r Mono.Data.SqliteClient.dll
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Running the Example:
|
||||
<pre>
|
||||
mono TestExample.exe
|
||||
</pre>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
+103
-17
@@ -1,48 +1,134 @@
|
||||
* Sybase Data Provider
|
||||
|
||||
<ul>
|
||||
<li>ADO.NET Provider for Sybase SQL Server databases
|
||||
<li>ADO.NET Provider for Sybase SQL Server databases</li>
|
||||
|
||||
<li>Exists in namespace Mono.Data.SybaseClient and assembly Mono.Data.SybaseClient
|
||||
<li>Exists in namespace Mono.Data.SybaseClient and assembly Mono.Data.SybaseClient</li>
|
||||
|
||||
<li>Created by Tim Coleman
|
||||
<li>Created by Tim Coleman</li>
|
||||
|
||||
<li>Used the <a href="http://www.freetds.org/">FreeTDS</a> and
|
||||
<a href="http://jtds.sourceforge.net/">jTDS</a> projects as resources.
|
||||
<a href="http://jtds.sourceforge.net/">jTDS</a> projects as resources.</li>
|
||||
|
||||
<li>Implemented in 100% C#
|
||||
<li>Implemented in 100% C#</li>
|
||||
|
||||
<li>Is similar to the Mono.Data.TdsClient and System.Data.SqlClient providers.
|
||||
<li>Is similar to the Mono.Data.TdsClient and System.Data.SqlClient providers.</li>
|
||||
|
||||
<li>Uses TDS Protocol Version 5.0
|
||||
<li>Requires the assembly Mono.Data.Tds.dll which implements the TDS protocol in 100% C#.</li>
|
||||
|
||||
<li><a href="http://www.go-mono.com/tds-providers.html">Design of the Microsoft SQL Server, Sybase, and TDS Providers in Mono</a>
|
||||
<li>Uses TDS Protocol Version 5.0</li>
|
||||
|
||||
<li>Does not support trusted connections</li>
|
||||
</ul>
|
||||
|
||||
* Current Status
|
||||
** Current Status
|
||||
|
||||
<ul>
|
||||
<li>Able to connect to Sybase databases
|
||||
<li>Able to connect to Sybase databases</li>
|
||||
|
||||
<li>SQL commands can be executed
|
||||
via ExecuteNonQuery() of a SybaseCommand.
|
||||
via ExecuteNonQuery() of a SybaseCommand.</li>
|
||||
|
||||
<li>SQL aggregates can be executed and a single row and single column
|
||||
result can be retrieved via ExecuteScalar() of a SybaseCommand
|
||||
result can be retrieved via ExecuteScalar() of a SybaseCommand</li>
|
||||
|
||||
<li>SQL queries can be executed via ExecuteReader() and results
|
||||
can be retrieved via SybaseDataReader.
|
||||
can be retrieved via SybaseDataReader.</li>
|
||||
|
||||
<li>a DataTable with schema info about a result can be gotten via GetSchemaTable()
|
||||
in a SybaseDataReader
|
||||
in a SybaseDataReader</li>
|
||||
|
||||
<li>Data can be filled in a DataTable in a DataSet via a SybaseDataAdapter
|
||||
<li>Data can be filled in a DataTable in a DataSet via a SybaseDataAdapter</li>
|
||||
</ul>
|
||||
|
||||
* Action plan
|
||||
** Action plan
|
||||
|
||||
<ul>
|
||||
<li>Connection timeouts is being developed now.
|
||||
|
||||
<li>Needs more testing...
|
||||
|
||||
<li>TODO
|
||||
</ul>
|
||||
|
||||
** Testing
|
||||
|
||||
<ul>
|
||||
<li>Have a working mono and mcs installed</li>
|
||||
|
||||
<li>Have access to a Sybase database
|
||||
or either download it:
|
||||
<ul>
|
||||
<li><a href="http://www.sybase.com/downloads">Sybase</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>Located at mcs/class/System.Data/Test is a test for System.Data.SqlClient
|
||||
named SqlTest.cs and you could use this as a basis for your test.</li>
|
||||
|
||||
<li>C# Example:
|
||||
<pre>
|
||||
using System;
|
||||
using System.Data;
|
||||
using Mono.Data.SybaseClient;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
string connectionString =
|
||||
"Server=localhost;" +
|
||||
"Database=pubs;" +
|
||||
"User ID=sa;" +
|
||||
"Password=;";
|
||||
IDbConnection dbcon;
|
||||
dbcon = new SybaseConnection(connectionString);
|
||||
IDbCommand dbcmd = dbcon.CreateCommand();
|
||||
string sql =
|
||||
"SELECT fname, lname " +
|
||||
"FROM employee";
|
||||
dbcmd.ConnectionString = sql;
|
||||
IDataReader reader = dbcmd.ExecuteReader();
|
||||
while(reader.Read()) {
|
||||
string FirstName = reader["fname"];
|
||||
string LastName = reader["lname"];
|
||||
Console.WriteLine("Name: " +
|
||||
FirstName + " " + LastName);
|
||||
}
|
||||
// clean up
|
||||
reader.Close();
|
||||
reader = null;
|
||||
dbcmd.Dispose();
|
||||
dbcmd = null;
|
||||
dbcon.Close();
|
||||
dbcon = null;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</li>
|
||||
<li>Building C# Example:
|
||||
<ul>
|
||||
<li>Save the example to a file, such as, TestExample.cs</li>
|
||||
<li>Build on Linux:
|
||||
<pre>
|
||||
mcs TestExample.cs -r System.Data.dll \
|
||||
-r Mono.Data.SybaseClient.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>Build on Windows via Cygwin:
|
||||
<pre>
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
|
||||
TestExample.cs \
|
||||
-lib:C:/cygwin/home/MyHome/mono/install/lib \
|
||||
-r System.Data.dll -r Mono.Data.SybaseClient.dll
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Running the Example:
|
||||
<pre>
|
||||
mono TestExample.exe
|
||||
</pre>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
+105
-19
@@ -1,51 +1,137 @@
|
||||
* TDS Generic Provider
|
||||
|
||||
<ul>
|
||||
<li>ADO.NET Provider for older Sybase and Microsoft SQL Server databases
|
||||
<li>ADO.NET Provider for older Sybase and Microsoft SQL Server databases</li>
|
||||
|
||||
<li>Exists in namespace Mono.Data.TdsClient and assembly Mono.Data.TdsClient
|
||||
<li>Exists in namespace Mono.Data.TdsClient and assembly Mono.Data.TdsClient</li>
|
||||
|
||||
<li>Created by Tim Coleman
|
||||
<li>Created by Tim Coleman</li>
|
||||
|
||||
<li>Used the <a href="http://www.freetds.org/">FreeTDS</a> and
|
||||
<a href="http://jtds.sourceforge.net/">jTDS</a> projects as resources.
|
||||
<a href="http://jtds.sourceforge.net/">jTDS</a> projects as resources.</li>
|
||||
|
||||
<li>Implemented in 100% C#
|
||||
<li>Implemented in 100% C#</li>
|
||||
|
||||
<li>Is similar to the Mono.Data.SybaseClient and System.Data.SqlClient providers.
|
||||
<li>Is similar to the Mono.Data.SybaseClient and System.Data.SqlClient providers.</li>
|
||||
|
||||
<li>Uses TDS Protocol Version 4.2 by default
|
||||
<li>Requires the assembly Mono.Data.Tds.dll which implements the TDS protocol in 100% C#.</li>
|
||||
|
||||
<li><a href="http://www.go-mono.com/tds-providers.html">Design of the Microsoft SQL Server, Sybase, and TDS Providers in Mono</a>
|
||||
<li>Uses TDS Protocol Version 4.2 by default</li>
|
||||
|
||||
<li>Does not support trusted connections</li>
|
||||
</ul>
|
||||
|
||||
* Current Status
|
||||
** Current Status
|
||||
|
||||
|
||||
<ul>
|
||||
<li>Only builds on Windows currently due to mcs does not support modules and mcs
|
||||
has problems with code that is internal.
|
||||
has problems with code that is internal.</li>
|
||||
|
||||
<li>Able to connect to Microsoft SQL Server and Sybase databases
|
||||
<li>Able to connect to Microsoft SQL Server and Sybase databases</li>
|
||||
|
||||
<li>SQL commands can be executed
|
||||
via ExecuteNonQuery() of a TdsCommand.
|
||||
via ExecuteNonQuery() of a TdsCommand.</li>
|
||||
|
||||
<li>SQL aggregates can be executed and a single row and single column
|
||||
result can be retrieved via ExecuteScalar() of a TdsCommand
|
||||
result can be retrieved via ExecuteScalar() of a TdsCommand</li>
|
||||
|
||||
<li>SQL queries can be executed via ExecuteReader() and results
|
||||
can be retrieved via TdsDataReader.
|
||||
can be retrieved via TdsDataReader.</li>
|
||||
|
||||
<li>a DataTable with schema info about a result can be gotten via GetSchemaTable()
|
||||
in a TdsDataReader
|
||||
in a TdsDataReader</li>
|
||||
|
||||
<li>Data can be filled in a DataTable in a DataSet via a TdsDataAdapter
|
||||
<li>Data can be filled in a DataTable in a DataSet via a TdsDataAdapter</li>
|
||||
</ul>
|
||||
|
||||
* Action plan
|
||||
** Action plan
|
||||
|
||||
<ul>
|
||||
<li>Connection timeouts is being developed now.
|
||||
<li>Connection timeouts is being developed now.</li>
|
||||
|
||||
<li>TODO
|
||||
<li>TODO</li>
|
||||
</ul>
|
||||
|
||||
** Testing
|
||||
|
||||
<ul>
|
||||
<li>Have a working mono and mcs installed</li>
|
||||
|
||||
<li>Have access to a Sybase or Microsoft SQL Server database
|
||||
or either download it:
|
||||
<ul>
|
||||
<li><a href="http://www.microsoft.com/sql/default.asp">Microsoft SQL Server</a></li>
|
||||
<li><a href="http://www.sybase.com/downloads">Sybase</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>Located at mcs/class/System.Data/Test is a test for System.Data.SqlClient
|
||||
named SqlTest.cs and you could use this as a basis for your test.</li>
|
||||
|
||||
<li>C# Example:
|
||||
<pre>
|
||||
using System;
|
||||
using System.Data;
|
||||
using Mono.Data.TdsClient;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
string connectionString =
|
||||
"Server=localhost;" +
|
||||
"Database=pubs;" +
|
||||
"User ID=sa;" +
|
||||
"Password=;";
|
||||
IDbConnection dbcon;
|
||||
dbcon = new TdsConnection(connectionString);
|
||||
IDbCommand dbcmd = dbcon.CreateCommand();
|
||||
string sql =
|
||||
"SELECT fname, lname " +
|
||||
"FROM employee";
|
||||
dbcmd.ConnectionString = sql;
|
||||
IDataReader reader = dbcmd.ExecuteReader();
|
||||
while(reader.Read()) {
|
||||
string FirstName = reader["fname"];
|
||||
string LastName = reader["lname"];
|
||||
Console.WriteLine("Name: " +
|
||||
FirstName + " " + LastName);
|
||||
}
|
||||
// clean up
|
||||
reader.Close();
|
||||
reader = null;
|
||||
dbcmd.Dispose();
|
||||
dbcmd = null;
|
||||
dbcon.Close();
|
||||
dbcon = null;
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</li>
|
||||
<li>Building C# Example:
|
||||
<ul>
|
||||
<li>Save the example to a file, such as, TestExample.cs</li>
|
||||
<li>Build on Linux:
|
||||
<pre>
|
||||
mcs TestExample.cs -r System.Data.dll \
|
||||
-r Mono.Data.TdsClient.dll
|
||||
</pre>
|
||||
</li>
|
||||
<li>Build on Windows via Cygwin:
|
||||
<pre>
|
||||
mono C:/cygwin/home/MyHome/mono/install/bin/mcs.exe \
|
||||
TestExample.cs \
|
||||
-lib:C:/cygwin/home/MyHome/mono/install/lib \
|
||||
-r System.Data.dll -r Mono.Data.TdsClient.dll
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Running the Example:
|
||||
<pre>
|
||||
mono TestExample.exe
|
||||
</pre>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
+31
-27
@@ -4,23 +4,11 @@
|
||||
1,Runtime,runtime.html,runtime.src
|
||||
2,Embedding,embedded-api.html,embedded-api.src
|
||||
1,Classes,class-library.html,class-library.src
|
||||
1,Gtk#,http://gtk-sharp.sourceforge.net
|
||||
1,Gtk#,gtk-sharp.html,gtk-sharp.src
|
||||
1,ASP.NET,asp-net.html,asp-net.src
|
||||
1,ADO.NET,ado-net.html,ado-net.src
|
||||
1,Class Status,class-status.html,class-status.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,corlib,class-status-corlib.html,class-status-corlib.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,System,class-status-System.html,class-status-System.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,Xml,class-status-System.Xml.html,class-status-System.Xml.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,Data,class-status-System.Data.html,class-status-System.Data.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,Drawing,class-status-System.Drawing.html,class-status-System.Drawing.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,Web,class-status-System.Web.html,class-status-System.Web.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,Web.Services,class-status-System.Web.Services.html,class-status-System.Web.Services.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,Microsoft.VisualBasic,class-status-Microsoft.VisualBasic.html,class-status-Microsoft.VisualBasic.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,Windows.Forms,class-status-System.Windows.Forms.html,class-status-System.Windows.Forms.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,EnterpriseServices,class-status-System.EnterpriseServices.html,class-status-System.EnterpriseServices.src,cm/cormissing.css,cm/cormissing.js
|
||||
2,Formatters.Soap,class-status-System.Runtime.Serialization.Formatters.Soap.html,class-status-System.Runtime.Serialization.Formatters.Soap.src,cm/cormissing.css,cm/cormissing.js
|
||||
1,C# Compiler,c-sharp.html,c-sharp.src
|
||||
1,Status,status.html,status.src
|
||||
1,VB Compiler,mbas.html,mbas.src
|
||||
0,Download,download.html,download.src
|
||||
1,CVS access,ccvs.html,ccvs.src
|
||||
1,AnonCVS access,anoncvs.html,anoncvs.src
|
||||
@@ -34,19 +22,6 @@
|
||||
1,Porting,porting.html,porting.src
|
||||
2,PowerPC,ppc.html,ppc.src
|
||||
1,HOWTO,mono-contribution-howto.html,mono-contribution-howto.src
|
||||
0,Plans,plans.html,plans.src
|
||||
1,ADO.NET,ado-net.html,ado-net.src
|
||||
2,Firebird Interbase,firebird.html,firebird.src
|
||||
2,Microsft SQL Server,sqlclient.html,sqlclient.src
|
||||
2,MySQL,mysql.html,mysql.src
|
||||
2,ODBC,odbc.html,odbc.src
|
||||
2,OLE DB,oledb.html,oledb.src
|
||||
2,PostgreSQL,postgresql.html,postgresql.src
|
||||
2,SQL Lite,sqlite.html,sqlite.src
|
||||
2,Sybase,sybase.html,sybase.src
|
||||
2,TDS Generic,tdsclient.html,tdsclient.src
|
||||
1,Java,java.html,java.src
|
||||
1,Windows.Forms,winforms.html,winforms.src
|
||||
0,Resources,resources.html,resources.src
|
||||
1,Beginning,mono-beginning.html,mono-beginning.src
|
||||
1,Mailing Lists,mailing-lists.html,mailing-lists.src
|
||||
@@ -56,4 +31,33 @@
|
||||
1,Papers,papers.html,papers.src
|
||||
1,Languages,languages.html,languages.src
|
||||
1,Debugging,jit-debug.html,jit-debug.src
|
||||
0,Plans,plans.html,plans.src
|
||||
1,ADO.NET,ado-net.html,ado-net.src
|
||||
2,Firebird Interbase,firebird.html,firebird.src
|
||||
2,IBM DB2,ibmdb2.html,ibmdb2.src
|
||||
2,Microsft SQL Server,sqlclient.html,sqlclient.src
|
||||
2,MySQL,mysql.html,mysql.src
|
||||
2,ODBC,odbc.html,odbc.src
|
||||
2,OLE DB,oledb.html,oledb.src
|
||||
2,Oracle,oracle.html,oracle.src
|
||||
2,PostgreSQL,postgresql.html,postgresql.src
|
||||
2,SQL Lite,sqlite.html,sqlite.src
|
||||
2,Sybase,sybase.html,sybase.src
|
||||
2,TDS Generic,tdsclient.html,tdsclient.src
|
||||
1,Crypto,crypto.html,crypto.src
|
||||
1,Java,java.html,java.src
|
||||
1,Windows.Forms,winforms.html,winforms.src
|
||||
0,Class Status,class-status.html,class-status.src,cm/cormissing.css,cm/cormissing.js
|
||||
1,corlib,class-status-corlib.html,class-status-corlib.src,cm/cormissing.css,cm/cormissing.js
|
||||
1,System,class-status-System.html,class-status-System.src,cm/cormissing.css,cm/cormissing.js
|
||||
1,Xml,class-status-System.Xml.html,class-status-System.Xml.src,cm/cormissing.css,cm/cormissing.js
|
||||
1,Data,class-status-System.Data.html,class-status-System.Data.src,cm/cormissing.css,cm/cormissing.js
|
||||
1,Drawing,class-status-System.Drawing.html,class-status-System.Drawing.src,cm/cormissing.css,cm/cormissing.js
|
||||
1,Web,class-status-System.Web.html,class-status-System.Web.src,cm/cormissing.css,cm/cormissing.js
|
||||
1,Web.Services,class-status-System.Web.Services.html,class-status-System.Web.Services.src,cm/cormissing.css,cm/cormissing.js
|
||||
1,Microsoft.VisualBasic,class-status-Microsoft.VisualBasic.html,class-status-Microsoft.VisualBasic.src,cm/cormissing.css,cm/cormissing.js
|
||||
1,Windows.Forms,class-status-System.Windows.Forms.html,class-status-System.Windows.Forms.src,cm/cormissing.css,cm/cormissing.js
|
||||
1,EnterpriseServices,class-status-System.EnterpriseServices.html,class-status-System.EnterpriseServices.src,cm/cormissing.css,cm/cormissing.js
|
||||
1,Formatters.Soap,class-status-System.Runtime.Serialization.Formatters.Soap.html,class-status-System.Runtime.Serialization.Formatters.Soap.src,cm/cormissing.css,cm/cormissing.js
|
||||
1,Cscompmgd,class-status-Cscompmgd.html,class-status-Cscompmgd.src,cm/cormissing.css,cm/cormissing.js
|
||||
0,Contact,contact.html,contact.src
|
||||
@@ -6,9 +6,11 @@ CORCOMPARE=../../../mcs/tools/corcompare
|
||||
OBJECTS= \
|
||||
deploy/ado-net.html \
|
||||
deploy/firebird.html \
|
||||
deploy/ibmdb2.html \
|
||||
deploy/mysql.html \
|
||||
deploy/odbc.html \
|
||||
deploy/oledb.html \
|
||||
deploy/oracle.html \
|
||||
deploy/postgresql.html \
|
||||
deploy/sqlclient.html \
|
||||
deploy/sqlite.html \
|
||||
@@ -30,13 +32,16 @@ OBJECTS= \
|
||||
deploy/class-status-System.EnterpriseServices.html \
|
||||
deploy/class-status-System.Runtime.Serialization.Formatters.Soap.html \
|
||||
deploy/class-status-System.Windows.Forms.html \
|
||||
deploy/class-status-Cscompmgd.html \
|
||||
deploy/class-library.html \
|
||||
deploy/classlib-doc.html \
|
||||
deploy/contact.html \
|
||||
deploy/c-sharp.html \
|
||||
deploy/mbas.html \
|
||||
deploy/ccvs.html \
|
||||
deploy/documentation.html \
|
||||
deploy/download.html \
|
||||
deploy/crypto.html \
|
||||
deploy/embedded-api.html \
|
||||
deploy/faq.html \
|
||||
deploy/gcc-frontend.html \
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>#TITLE#</title>
|
||||
<link rel="icon" href="../MonoIcon.png" type="image/png">
|
||||
<!-- background-image: url("images/bgsquares.gif"); -->
|
||||
<style type="text/css">
|
||||
<!--
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
man_MANS = mcs.1 mono.1 monostyle.1 mono-config.5 sqlsharpcli.1
|
||||
man_MANS = mcs.1 mono.1 monostyle.1 mono-config.5 sqlsharp.1
|
||||
|
||||
EXTRA_DIST = $(man_MANS)
|
||||
|
||||
@@ -1,13 +1,26 @@
|
||||
.TH sqlsharpcli 1 "30 November 2002"
|
||||
.TH sqlsharp 1 "10 December 2002"
|
||||
.SH NAME
|
||||
sqlsharpcli \- Mono SQL# Command Line SQL Query tool
|
||||
sqlsharp \- Mono SQL# command-line SQL Query tool
|
||||
.SH SYNOPSIS
|
||||
.B sqlsharpcli
|
||||
[option] [source-files]
|
||||
.B sqlsharp
|
||||
[\-f filename] [\-o filename] [\-s]
|
||||
.SH DESCRIPTION
|
||||
sqlsharpcli is the Mono SQL# tool used for entering SQL queries
|
||||
sqlsharp is the Mono SQL# tool used for entering SQL queries
|
||||
to a database using Mono ADO.NET providers.
|
||||
.PP
|
||||
.SH OPTIONS
|
||||
The following options are supported:
|
||||
.TP
|
||||
.I "-f filename"
|
||||
Output file to load SQL# commands from.
|
||||
.TP
|
||||
.I "-o filename"
|
||||
Output file to send results.
|
||||
.TP
|
||||
.I "-s"
|
||||
Silent mode.
|
||||
.PP
|
||||
.SH HOW TO USE
|
||||
The SQL# tool accepts commands via its command line interface. Commands
|
||||
begin with a backslash followed by the command name.
|
||||
.PP
|
||||
@@ -46,35 +59,6 @@ To connect to a database, you need to do the following:
|
||||
|
||||
.fi
|
||||
.PP
|
||||
.SH COMMANDS
|
||||
The following commands are supported:
|
||||
.PP
|
||||
.TP
|
||||
.I "Open"
|
||||
Opens connection to database.
|
||||
.nf
|
||||
|
||||
Example:
|
||||
SQL# \\open
|
||||
|
||||
.fi
|
||||
.TP
|
||||
.I "ConnectionString"
|
||||
Sets the Connection String.
|
||||
.nf
|
||||
|
||||
Example:
|
||||
SQL# \\connectionstring Database=test
|
||||
.fi
|
||||
.TP
|
||||
.I "Provider"
|
||||
Sets the data provider.
|
||||
.nf
|
||||
|
||||
Example:
|
||||
SQL# \\provider mysql
|
||||
|
||||
.fi
|
||||
.SH CONNECTION AND PROVIDER COMMANDS
|
||||
These commands are used to setup the provider,
|
||||
connection string, and open/close the database connnection
|
||||
@@ -358,16 +342,28 @@ ption defaulting to true.
|
||||
.SH PROVIDERS
|
||||
.nf
|
||||
|
||||
PROVIDER NAME NAMESPACE ASSEMBLY
|
||||
PROVIDER NAME NAMESPACE ASSEMBLY
|
||||
|
||||
OleDb OLE DB System.Data.OleDb System.Data
|
||||
SqlClient MS SQL 7/2000 System.Data.SqlClient System.Data
|
||||
Odbc ODBC System.Data.Odbc System.Data
|
||||
MySql MySQL Mono.Data.MySql Mono.Data.MySql
|
||||
Sqlite SQL Lite Mono.Data.SqliteClient Mono.Data.SqliteClient
|
||||
Sybase Sybase Mono.Data.SybaseClient Mono.Data.SybaseClient
|
||||
Tds TDS Generic Mono.Data.TdsClient Mono.Data.TdsClient
|
||||
PostgreSql PostgreSQL Mono.Data.PostgreSqlClient Mono.Data.PostgreSqlClient
|
||||
Internal
|
||||
--------
|
||||
|
||||
OleDb OLE DB System.Data.OleDb System.Data
|
||||
SqlClient MS SQL 7/2000 System.Data.SqlClient System.Data
|
||||
Odbc ODBC System.Data.Odbc System.Data
|
||||
|
||||
External to System.Data
|
||||
----------------------
|
||||
MySql MySQL Mono.Data.MySql Mono.Data.MySql
|
||||
Sqlite SQL Lite Mono.Data.SqliteClient Mono.Data.SqliteClient
|
||||
Sybase Sybase Mono.Data.SybaseClient Mono.Data.SybaseClient
|
||||
Tds TDS Generic Mono.Data.TdsClient Mono.Data.TdsClient
|
||||
PostgreSql MonoPostgreSQL Mono.Data.PostgreSqlClient Mono.Data.PostgreSqlClient
|
||||
|
||||
External to Mono
|
||||
----------------
|
||||
|
||||
Npgsql PostgreSQL.NET Npgsql Npgsql
|
||||
MySQLNet ByteFX MySQL ByteFX.Data.MySQL ByteFX.Data
|
||||
|
||||
.fi
|
||||
.SH CONNECTION STRING SAMPLES
|
||||
@@ -427,30 +423,34 @@ which connects to a PostgreSQL database:
|
||||
.fi
|
||||
.SH DEBUGGING SUPPORT
|
||||
No debugging support.
|
||||
.SH NOTES
|
||||
No notes.
|
||||
.SH AUTHORS
|
||||
The Mono SQL# Tool was written
|
||||
.nf
|
||||
by Daniel Morgan <[email protected]>
|
||||
.fi
|
||||
.PP
|
||||
.SH LICENSE
|
||||
The Mono SQL# Tool is released under the terms of the GNU GPL.
|
||||
Please read the accompanying `COPYING' file for details. Alternative
|
||||
licenses are available from Ximian or Daniel Morgan.
|
||||
.PP
|
||||
.SH SEE ALSO
|
||||
mono(1), mint(1), mcs(1)
|
||||
.PP
|
||||
.SH BUGS
|
||||
To report bugs in the compiler, you can use `bug-buddy', or you can
|
||||
file bug reports in our bug tracking system:
|
||||
.nf
|
||||
http://bugzilla.ximian.com.
|
||||
.SH MAILING LIST
|
||||
The Mono Mailing List is available at: [email protected]
|
||||
.SH MORE INFORMATION
|
||||
The Mono C# compiler is developed by Ximian, Inc
|
||||
(http://www.ximian.com) (http://www.ximian.com) and is based on the
|
||||
ECMA C# language standard available here:
|
||||
http://www.ecma.ch/ecma1/STAND/ecma-334.htm
|
||||
|
||||
.fi
|
||||
.PP
|
||||
.SH MAILING LISTS
|
||||
For details, visit:
|
||||
.nf
|
||||
http://mail.ximian.com/mailman/mono-list
|
||||
.fi
|
||||
.SH WEB SITE
|
||||
For details, visit:
|
||||
.nf
|
||||
http://www.go-mono.com
|
||||
.fi
|
||||
.PP
|
||||
.SH SEE ALSO
|
||||
mono(1), mint(1)
|
||||
|
||||
+2
-1
@@ -5,7 +5,7 @@ C# Compiler:
|
||||
|
||||
Class Libraries:
|
||||
Patrik Torstensson <[email protected]>
|
||||
Gaurav Vaish <gvaish@iitk.ac.in>
|
||||
Gaurav Vaish <gvaish[email protected]>
|
||||
Jeff Stedfast ([email protected])
|
||||
Joe Shaw ([email protected])
|
||||
Miguel de Icaza ([email protected])
|
||||
@@ -15,3 +15,4 @@ Class Libraries:
|
||||
Bob Smith ([email protected])
|
||||
John Barnette ([email protected])
|
||||
Daniel Morgan <[email protected]>
|
||||
Sebastien Pouliot <[email protected]>
|
||||
+61
-16
@@ -1,3 +1,48 @@
|
||||
2003-01-16 Nick Drochak <[email protected]>
|
||||
|
||||
* makefile.gnu: Add corlib target to just build that.
|
||||
|
||||
2003-01-14 Duncan Mak <[email protected]>
|
||||
|
||||
* ilasm/parser/ScannerAdapter.cs: Remove the cleanup method now that
|
||||
it's no longer in the interface.
|
||||
|
||||
2003-01-13 Duncan Mak <[email protected]>
|
||||
|
||||
* ilasm/parser/ScannerAdapter.cs: Implement the new cleanup method
|
||||
in the tokenizer. This fixes the build.
|
||||
|
||||
2003-01-10 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* README.building: New file.
|
||||
* makefile.gnu: install README.building file.
|
||||
|
||||
2003-01-09 Sebastien Pouliot <[email protected]>
|
||||
|
||||
* AUTHORS: add myself to class library list
|
||||
|
||||
2002-12-15 Alp Toker <[email protected]>
|
||||
|
||||
* makefile.gnu: make sure mcs is in PATH, otherwise tell user to read
|
||||
INSTALL.txt
|
||||
|
||||
2002-12-10 Daniel Morgan <[email protected]>
|
||||
|
||||
* makefile
|
||||
* tools/makefile
|
||||
* tools/makefile.gnu: change target
|
||||
from SqlSharpCli.exe
|
||||
to sqlsharp.exe
|
||||
|
||||
2002-12-10 Alp Toker <[email protected]>
|
||||
|
||||
* ilasm/makefile.gnu: Install ilasm executable with -m 755, not 644
|
||||
* ilasm/makefile: ditto
|
||||
|
||||
2002-12-10 Gaurav Vaish <[email protected]>
|
||||
|
||||
* AUTHORS: Corrected my email-ID.
|
||||
|
||||
2002-11-29 Daniel Morgan <[email protected]>
|
||||
|
||||
* INSTALL: renamed to INSTALL.txt because INSTALL
|
||||
@@ -165,20 +210,20 @@
|
||||
|
||||
* makefile (linux): Abandon the build if any of the subdir makes fail
|
||||
|
||||
2002-03-07 Nick Drochak <[email protected]>
|
||||
|
||||
* makefile: Change order of build so corlib is built before nunit since
|
||||
Nunit needs corlib now.
|
||||
|
||||
2002-02-14 Nick Drochak <[email protected]>
|
||||
|
||||
* makefile: Build mcs/doctools too when one does 'make'
|
||||
|
||||
2002-01-20 Nick Drochak <[email protected]>
|
||||
|
||||
* on the 'test' target, make sure NUnit is built first before building
|
||||
and running tests
|
||||
|
||||
2002-01-20 Nick Drochak <[email protected]>
|
||||
|
||||
2002-03-07 Nick Drochak <[email protected]>
|
||||
|
||||
* makefile: Change order of build so corlib is built before nunit since
|
||||
Nunit needs corlib now.
|
||||
|
||||
2002-02-14 Nick Drochak <[email protected]>
|
||||
|
||||
* makefile: Build mcs/doctools too when one does 'make'
|
||||
|
||||
2002-01-20 Nick Drochak <[email protected]>
|
||||
|
||||
* on the 'test' target, make sure NUnit is built first before building
|
||||
and running tests
|
||||
|
||||
2002-01-20 Nick Drochak <[email protected]>
|
||||
|
||||
* add nunit directory to the list of dirs to build in
|
||||
@@ -0,0 +1,33 @@
|
||||
|
||||
[1] Building mono + mcs from CVS on *NIX. The Easy Way (tm)
|
||||
-------------------------------------------------------------
|
||||
1. Get mono and mcs from CVS (http://www.go-mono.com/download.html)
|
||||
|
||||
2. Use the script to build mono (mono/doc/mono-build.sh).
|
||||
|
||||
3. Copy the dlls and mcs.exe from the latest monocharge tarball
|
||||
(http://www.gnome-db.org/~gonzalo/mono/) to /where/you/installed/mono/lib and
|
||||
..../bin respectively.
|
||||
|
||||
|
||||
|
||||
[2] Keeping the stuff up to date
|
||||
----------------------------------
|
||||
Once you have followed the above steps, do these ones to keep your installation
|
||||
up to date:
|
||||
|
||||
1. In mcs directory,
|
||||
|
||||
cvs -z3 update -Pd
|
||||
make -f makefile.gnu
|
||||
|
||||
2. Use the mono-build.sh script to update, rebuild and install mono from CVS.
|
||||
Doing a cvs update of mono/doc/mono-build.sh file is also a good idea.
|
||||
|
||||
3. In mcs directory:
|
||||
|
||||
make -f makefile.gnu install prefix=/prefix/of/your/installation/path
|
||||
|
||||
4. In case of troubles (ie, unable to compile mcs/* sources) go to [1].
|
||||
|
||||
-Gonzalo
|
||||
@@ -22,7 +22,9 @@
|
||||
</sources>
|
||||
</csc>
|
||||
<copy file="../lib/Accessibility.dll" tofile="Test/Accessibility.dll"/>
|
||||
<nant basedir="Test" target="build"/>
|
||||
<!-- TODO: missing tests & buildfile
|
||||
<nant basedir="Test" target="build"/>
|
||||
-->
|
||||
</target>
|
||||
|
||||
<target name="test" depends="build">
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
2002-12-10 Jeroen Janssen <[email protected]>
|
||||
|
||||
* updated .build file to correctly build with Nant
|
||||
@@ -1,3 +1,33 @@
|
||||
2003-01-17 Sebastien Pouliot <[email protected]>
|
||||
|
||||
* library.build: added System.Security to build, test and clean.
|
||||
There's no makefile.gnu yet for this assembly.
|
||||
|
||||
2003-01-16 Rodrigo Moya <[email protected]>
|
||||
|
||||
* makefile.gnu: added Mono.Data.DB2Client directory.
|
||||
|
||||
2003-01-08 Gaurav Vaish <gvaish_mono AT lycos.com>
|
||||
|
||||
* System.Web.Mobile : Added new directory
|
||||
|
||||
2002-12-11 Jeroen Janssen <[email protected]>
|
||||
|
||||
* enabled building Mono.Directory.LDAP and
|
||||
System.Design in .build file
|
||||
|
||||
2002-12-10 Jeroen Janssen <[email protected]>
|
||||
|
||||
* updated .build file(s) to correctly contain required buildfile
|
||||
attribute for nant
|
||||
|
||||
2002-12-09 Daniel Morgan <[email protected]>
|
||||
|
||||
* library.build: add Mono.GetOptions to windows build
|
||||
|
||||
* Mono.GetOptions/Mono.GetOptions.build: add file
|
||||
for windows build
|
||||
|
||||
2002-12-08 Radek Doulik <[email protected]>
|
||||
|
||||
* makefile.gnu (DIRS): place System.Data before Mono.GetOptions,
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
2002-13-07 Jackson Harper <[email protected]>
|
||||
2002-12-15 Jackson Harper <[email protected]>
|
||||
|
||||
* CompilerError.cs ErrorLevel.cs: Moved ErrorLevel enum into its own file
|
||||
|
||||
2002-12-12 Jackson Harper <[email protected]>
|
||||
|
||||
* Compiler.cs: Partially implemented bugreport option, also only allow valid options now
|
||||
|
||||
2002-12-07 Jackson Harper <[email protected]>
|
||||
|
||||
* Compiler.cs: Moved StreamWriter creation into a try block
|
||||
|
||||
2002-13-07 Jackson Harper <[email protected]>
|
||||
2002-12-07 Jackson Harper <[email protected]>
|
||||
|
||||
* Compiler.cs: Source text is now implemented so you can pass strings of C# code to be compiled
|
||||
|
||||
|
||||
@@ -30,11 +30,20 @@ namespace Microsoft.CSharp {
|
||||
|
||||
string[] temp_cs_files;
|
||||
CompilerError[] errors;
|
||||
|
||||
string bugreport_path = null;
|
||||
StreamWriter bug_report = null;
|
||||
|
||||
temp_cs_files = CreateCsFiles (sourceTexts, sourceTextNames);
|
||||
|
||||
if (options != null)
|
||||
bugreport_path = (string)options["bugreport"];
|
||||
|
||||
if (bugreport_path != null) {
|
||||
bug_report = CreateBugReport (sourceTexts, sourceTextNames, bugreport_path);
|
||||
}
|
||||
|
||||
try {
|
||||
errors = CompileFiles (temp_cs_files, target, imports, options);
|
||||
errors = CompileFiles (temp_cs_files, target, imports, options, bug_report);
|
||||
} catch {
|
||||
throw;
|
||||
} finally {
|
||||
@@ -42,6 +51,8 @@ namespace Microsoft.CSharp {
|
||||
FileInfo file = new FileInfo (temp_file);
|
||||
file.Delete ();
|
||||
}
|
||||
if (bug_report != null)
|
||||
bug_report.Close ();
|
||||
}
|
||||
|
||||
return errors;
|
||||
@@ -52,7 +63,7 @@ namespace Microsoft.CSharp {
|
||||
//
|
||||
|
||||
private static CompilerError[] CompileFiles (string[] cs_files,
|
||||
string target, string[] imports, IDictionary options)
|
||||
string target, string[] imports, IDictionary options, StreamWriter bug_report)
|
||||
{
|
||||
ArrayList error_list = new ArrayList ();
|
||||
Process mcs = new Process ();
|
||||
@@ -82,6 +93,11 @@ namespace Microsoft.CSharp {
|
||||
error_list.Add (error);
|
||||
}
|
||||
|
||||
if (bug_report != null) {
|
||||
bug_report.WriteLine ("### Compiler Output");
|
||||
bug_report.Write (mcs_output);
|
||||
}
|
||||
|
||||
return (CompilerError[])error_list.ToArray (typeof(CompilerError));
|
||||
}
|
||||
|
||||
@@ -152,6 +168,8 @@ namespace Microsoft.CSharp {
|
||||
if (null != options) {
|
||||
foreach (object option in options.Keys) {
|
||||
object value = options[option];
|
||||
if (!ValidOption ((string)option))
|
||||
continue;
|
||||
args.AppendFormat ("{0} ", OptionString (option,value));
|
||||
}
|
||||
}
|
||||
@@ -184,6 +202,64 @@ namespace Microsoft.CSharp {
|
||||
throw new IndexOutOfRangeException ();
|
||||
}
|
||||
|
||||
private static StreamWriter CreateBugReport (string[] source_texts,
|
||||
string[] source_names, string path)
|
||||
{
|
||||
StreamWriter bug_report = null;
|
||||
|
||||
try {
|
||||
bug_report = new StreamWriter (path);
|
||||
bug_report.WriteLine ("### C# Compiler Defect Report," +
|
||||
" created {0}", DateTime.Now);
|
||||
// Compiler Version
|
||||
// Runtime
|
||||
// Operating System
|
||||
// Username
|
||||
for (int i=0; i<source_texts.Length; i++) {
|
||||
bug_report.WriteLine ("### Source file: '{0}'",
|
||||
source_names[i]);
|
||||
bug_report.Write (source_texts[i]);
|
||||
}
|
||||
} catch {
|
||||
if (bug_report != null)
|
||||
bug_report.Close ();
|
||||
throw;
|
||||
}
|
||||
|
||||
return bug_report;
|
||||
}
|
||||
|
||||
|
||||
private static bool ValidOption (string option)
|
||||
{
|
||||
switch (option) {
|
||||
case "addmodule":
|
||||
case "baseaddress":
|
||||
case "checked":
|
||||
case "d":
|
||||
case "debug":
|
||||
case "doc":
|
||||
case "filealign":
|
||||
case "incr":
|
||||
case "lib":
|
||||
case "linkres":
|
||||
case "m":
|
||||
case "nostdlib":
|
||||
case "nowarn":
|
||||
case "o":
|
||||
case "r":
|
||||
case "res":
|
||||
case "target":
|
||||
case "unsafe":
|
||||
case "w":
|
||||
case "warnaserror":
|
||||
case "win32icon":
|
||||
case "win32res":
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -11,13 +11,6 @@ using System.Text;
|
||||
|
||||
namespace Microsoft.CSharp {
|
||||
|
||||
public enum ErrorLevel {
|
||||
None,
|
||||
Warning,
|
||||
Error,
|
||||
FatalError,
|
||||
}
|
||||
|
||||
public class CompilerError {
|
||||
|
||||
private ErrorLevel level = ErrorLevel.None;
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
// Microsoft.CSharp.ErrorLevel
|
||||
//
|
||||
// Author(s):
|
||||
// Jackson Harper ([email protected])
|
||||
//
|
||||
// (C) 2002 Jackson Harper, All rights reserved.
|
||||
//
|
||||
|
||||
namespace Microsoft.CSharp {
|
||||
|
||||
public enum ErrorLevel {
|
||||
None,
|
||||
Warning,
|
||||
Error,
|
||||
FatalError,
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
Microsoft.CSharp/Compiler.cs
|
||||
Microsoft.CSharp/CompilerError.cs
|
||||
Microsoft.CSharp/ErrorLevel.cs
|
||||
Microsoft.CSharp/TODOAttribute.cs
|
||||
@@ -3,8 +3,10 @@
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
// Francesco Delfino ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
// 2002 [email protected]
|
||||
//
|
||||
|
||||
using System;
|
||||
@@ -13,29 +15,107 @@ namespace Microsoft.VisualBasic
|
||||
{
|
||||
sealed public class ErrObject {
|
||||
// Declarations
|
||||
int pHelpContext;
|
||||
int pLastDllError;
|
||||
int pNumber;
|
||||
int pErl;
|
||||
string pSource;
|
||||
string pHelpFile;
|
||||
string pDescription;
|
||||
System.Exception pException;
|
||||
// Constructors
|
||||
// Properties
|
||||
[MonoTODO]
|
||||
public System.Int32 HelpContext { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } }
|
||||
public System.Int32 HelpContext
|
||||
{
|
||||
get {
|
||||
return pHelpContext;
|
||||
}
|
||||
set {
|
||||
pHelpContext = value;
|
||||
}
|
||||
}
|
||||
[MonoTODO]
|
||||
public System.Int32 LastDllError { get { throw new NotImplementedException (); } }
|
||||
public System.Int32 LastDllError {
|
||||
get {
|
||||
return pLastDllError;
|
||||
}
|
||||
}
|
||||
[MonoTODO]
|
||||
public System.Int32 Number { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } }
|
||||
public System.Int32 Number {
|
||||
get {
|
||||
return pNumber;
|
||||
}
|
||||
set {
|
||||
pNumber = value;
|
||||
}
|
||||
}
|
||||
[MonoTODO]
|
||||
public System.Int32 Erl { get { throw new NotImplementedException (); } }
|
||||
public System.Int32 Erl {
|
||||
get {
|
||||
return pErl;
|
||||
}
|
||||
}
|
||||
[MonoTODO]
|
||||
public System.String Source { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } }
|
||||
public System.String Source {
|
||||
get {
|
||||
return pSource;
|
||||
}
|
||||
set {
|
||||
pSource = value;
|
||||
}
|
||||
}
|
||||
[MonoTODO]
|
||||
public System.String HelpFile { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } }
|
||||
public System.String HelpFile {
|
||||
get {
|
||||
return pHelpFile;
|
||||
}
|
||||
set {
|
||||
pHelpFile = value;
|
||||
}
|
||||
}
|
||||
[MonoTODO]
|
||||
public System.String Description { get { throw new NotImplementedException (); } set { throw new NotImplementedException (); } }
|
||||
public System.String Description {
|
||||
get {
|
||||
return pDescription;
|
||||
}
|
||||
set {
|
||||
pDescription = value;
|
||||
}
|
||||
}
|
||||
// Methods
|
||||
[MonoTODO("We should parse the exception object to obtain VB-like error code. Not a trivial task!")]
|
||||
internal void SetException (Exception ex)
|
||||
{
|
||||
if (pException != ex)
|
||||
{
|
||||
pNumber = 0xFFFF;
|
||||
pSource = ex.Source;
|
||||
pDescription = ex.Message + "\n" + ex.StackTrace;
|
||||
}
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public System.Exception GetException () { throw new NotImplementedException (); }
|
||||
public System.Exception GetException ()
|
||||
{
|
||||
return pException;
|
||||
}
|
||||
[MonoTODO]
|
||||
public void Clear () { throw new NotImplementedException (); }
|
||||
public void Clear () {
|
||||
pHelpContext=0;
|
||||
pLastDllError=0;
|
||||
pNumber=0;
|
||||
pErl=0;
|
||||
pSource="";
|
||||
pHelpFile="";
|
||||
pDescription="";
|
||||
pException= null;
|
||||
}
|
||||
[MonoTODO]
|
||||
public void Raise (System.Int32 Number, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object Source, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object Description, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object HelpFile, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object HelpContext) { throw new NotImplementedException (); }
|
||||
public void Raise (System.Int32 Number, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object Source, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object Description, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object HelpFile, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(null)] System.Object HelpContext)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
// Events
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -2,188 +2,421 @@
|
||||
// FileSystem.cs
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// Daniel Campos ( [email protected] )
|
||||
//
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
namespace Microsoft.VisualBasic
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class FileSystem {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static void ChDir (System.String Path) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void ChDrive (System.Char Drive) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void ChDrive (System.String Drive) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String CurDir () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String CurDir (System.Char Drive) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String Dir () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String Dir (System.String Pathname, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.FileAttribute Attributes) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void MkDir (System.String Path) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void RmDir (System.String Path) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileCopy (System.String Source, System.String Destination) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.DateTime FileDateTime (System.String PathName) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int64 FileLen (System.String PathName) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.FileAttribute GetAttr (System.String PathName) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Kill (System.String PathName) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void SetAttr (System.String PathName, Microsoft.VisualBasic.FileAttribute Attributes) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileOpen (System.Int32 FileNumber, System.String FileName, Microsoft.VisualBasic.OpenMode Mode, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] Microsoft.VisualBasic.OpenAccess Access, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] Microsoft.VisualBasic.OpenShare Share, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int32 RecordLength) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileClose (params System.Int32[] FileNumbers) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGetObject (System.Int32 FileNumber, ref System.Object Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.ValueType Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Array Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] ref System.Boolean ArrayIsDynamic, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] ref System.Boolean StringIsFixedLength) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Boolean Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Byte Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Int16 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Int32 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Int64 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Char Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Single Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Double Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Decimal Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.String Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] ref System.Boolean StringIsFixedLength) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.DateTime Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePutObject (System.Int32 FileNumber, System.Object Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
[System.ObsoleteAttribute("Use FilePutObject to write Object types, or coerce FileNumber and RecordNumber to Integer for writing non-Object types", false)]
|
||||
public static void FilePut (System.Object FileNumber, System.Object Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Object RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.ValueType Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Array Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] System.Boolean ArrayIsDynamic, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] System.Boolean StringIsFixedLength) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Boolean Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Byte Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Int16 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Int32 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Int64 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Char Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Single Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Double Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Decimal Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.String Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] System.Boolean StringIsFixedLength) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.DateTime Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Print (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void PrintLine (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Object Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Boolean Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Byte Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Int16 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Int32 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Int64 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Char Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Single Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Double Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Decimal Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.String Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.DateTime Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Write (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void WriteLine (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String InputString (System.Int32 FileNumber, System.Int32 CharCount) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String LineInput (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Lock (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Lock (System.Int32 FileNumber, System.Int64 Record) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Lock (System.Int32 FileNumber, System.Int64 FromRecord, System.Int64 ToRecord) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Unlock (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Unlock (System.Int32 FileNumber, System.Int64 Record) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Unlock (System.Int32 FileNumber, System.Int64 FromRecord, System.Int64 ToRecord) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileWidth (System.Int32 FileNumber, System.Int32 RecordWidth) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int32 FreeFile () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Seek (System.Int32 FileNumber, System.Int64 Position) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int64 Seek (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean EOF (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int64 Loc (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int64 LOF (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.TabInfo TAB () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.TabInfo TAB (System.Int16 Column) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.SpcInfo SPC (System.Int16 Count) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.OpenMode FileAttr (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Reset () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Rename (System.String OldPath, System.String NewPath) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
};
|
||||
}
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
sealed public class FileSystem {
|
||||
private static System.IO.FileStream[] FHandle=new FileStream[255];
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO("Needs testing")]
|
||||
public static void ChDir (System.String Path)
|
||||
{
|
||||
if ( (Path=="") || (Path==null))
|
||||
throw new System.ArgumentException("Path is empty");
|
||||
try
|
||||
{
|
||||
Environment.CurrentDirectory=Path;
|
||||
}
|
||||
catch ( Exception e){ throw new System.IO.FileNotFoundException ("Invalid drive is specified, or drive is unavailable");}
|
||||
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public static void ChDrive (System.Char Drive) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void ChDrive (System.String Drive) { throw new NotImplementedException (); }
|
||||
|
||||
[MonoTODO("Needs testing")]
|
||||
public static System.String CurDir ()
|
||||
{
|
||||
return Environment.CurrentDirectory;
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public static System.String CurDir (System.Char Drive) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String Dir () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String Dir (System.String Pathname, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.FileAttribute Attributes) { throw new NotImplementedException (); }
|
||||
|
||||
[MonoTODO("Needs testing")]
|
||||
public static void MkDir (System.String Path)
|
||||
{
|
||||
// if a file called like 'path' does exist
|
||||
// no exception is generated using .net
|
||||
// A little extrange?
|
||||
if (Path==null || Path=="")
|
||||
{
|
||||
throw new System.ArgumentException();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (System.IO.Directory.Exists (Path))
|
||||
throw new System.IO.IOException("Directory already exists");
|
||||
else
|
||||
System.IO.Directory.CreateDirectory(Path);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoTODO("Needs testing")]
|
||||
public static void RmDir (System.String Path)
|
||||
{
|
||||
System.IO.Directory.Delete(Path);
|
||||
}
|
||||
|
||||
[MonoTODO("Needs testing")]
|
||||
public static void FileCopy (System.String Source, System.String Destination)
|
||||
{
|
||||
// using VB, filecopy always overwrites Destination
|
||||
System.IO.File.Copy(Source,Destination,true);
|
||||
}
|
||||
|
||||
[MonoTODO("Needs testing")]
|
||||
public static System.DateTime FileDateTime (System.String PathName)
|
||||
{
|
||||
// A better exception handling is needed : exceptions
|
||||
// are not the same as 'GetLastWriteTime'
|
||||
return System.IO.File.GetLastWriteTime (PathName);
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public static System.Int64 FileLen (System.String PathName) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.FileAttribute GetAttr (System.String PathName) { throw new NotImplementedException (); }
|
||||
|
||||
[MonoTODO("Needs testing")]
|
||||
public static void Kill (System.String PathName)
|
||||
{
|
||||
if (!System.IO.File.Exists(PathName))
|
||||
throw new System.IO.FileNotFoundException();
|
||||
else
|
||||
System.IO.File.Delete(PathName);
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public static void SetAttr (System.String PathName, Microsoft.VisualBasic.FileAttribute Attributes) { throw new NotImplementedException (); }
|
||||
|
||||
[MonoTODO("Needs testing")]
|
||||
public static void FileOpen (System.Int32 FileNumber, System.String FileName, Microsoft.VisualBasic.OpenMode Mode, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] Microsoft.VisualBasic.OpenAccess Access, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] Microsoft.VisualBasic.OpenShare Share, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int32 RecordLength)
|
||||
{
|
||||
// at this moment you can open a file
|
||||
// only for Append, Input or Output
|
||||
System.IO.FileMode MyMode;
|
||||
System.IO.FileAccess MyAccess;
|
||||
System.IO.FileShare MyShare;
|
||||
if ( RecordLength < -1 )
|
||||
throw new System.ArgumentException("Record Length is negative (nad not equal to -1)");
|
||||
if ( RecordLength > 32767)
|
||||
throw new System.ArgumentException ("Invalid Record Length");
|
||||
if (FileNumber <0 || FileNumber > 255)
|
||||
throw new System.IO.IOException(FileNumber.ToString() + " is invalid (<-1 or >255)",5);
|
||||
|
||||
FileNumber--;
|
||||
if (FHandle[FileNumber] != null)
|
||||
throw new System.IO.IOException (FileNumber.ToString() + " is in use",5);
|
||||
|
||||
switch (Mode)
|
||||
{
|
||||
case Microsoft.VisualBasic.OpenMode.Append :
|
||||
MyMode=System.IO.FileMode.Append ;
|
||||
break;
|
||||
case Microsoft.VisualBasic.OpenMode.Binary :
|
||||
throw new NotImplementedException ();
|
||||
|
||||
case Microsoft.VisualBasic.OpenMode.Input :
|
||||
MyMode=System.IO.FileMode.Open ;
|
||||
break;
|
||||
case Microsoft.VisualBasic.OpenMode.Output :
|
||||
MyMode=System.IO.FileMode.OpenOrCreate ;
|
||||
break;
|
||||
case Microsoft.VisualBasic.OpenMode.Random :
|
||||
throw new NotImplementedException ();
|
||||
default:
|
||||
throw new System.ArgumentException("Invalid Share");
|
||||
}
|
||||
switch (Access)
|
||||
{
|
||||
case Microsoft.VisualBasic.OpenAccess.ReadWrite :
|
||||
case Microsoft.VisualBasic.OpenAccess.Default :
|
||||
MyAccess=System.IO.FileAccess.ReadWrite;
|
||||
break;
|
||||
case Microsoft.VisualBasic.OpenAccess.Read :
|
||||
MyAccess=System.IO.FileAccess.Read;
|
||||
break;
|
||||
case Microsoft.VisualBasic.OpenAccess.Write :
|
||||
MyAccess=System.IO.FileAccess.Write;
|
||||
break;
|
||||
default:
|
||||
throw new System.ArgumentException("Invalid Access");
|
||||
|
||||
}
|
||||
switch(Share)
|
||||
{
|
||||
case Microsoft.VisualBasic.OpenShare.Default :
|
||||
case Microsoft.VisualBasic.OpenShare.Shared :
|
||||
MyShare=System.IO.FileShare.ReadWrite ;
|
||||
break;
|
||||
case Microsoft.VisualBasic.OpenShare.LockRead :
|
||||
MyShare=System.IO.FileShare.Write;
|
||||
break;
|
||||
case Microsoft.VisualBasic.OpenShare.LockReadWrite :
|
||||
MyShare=System.IO.FileShare.None ;
|
||||
break;
|
||||
case Microsoft.VisualBasic.OpenShare.LockWrite :
|
||||
MyShare=System.IO.FileShare.Read;
|
||||
break;
|
||||
default:
|
||||
throw new System.ArgumentException("Invalid Share");
|
||||
}
|
||||
FHandle[FileNumber]=new System.IO.FileStream (FileName,MyMode,MyAccess,MyShare);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
[MonoTODO("Needs testing")]
|
||||
public static void FileClose (params System.Int32[] FileNumbers)
|
||||
{
|
||||
int bucle=0;
|
||||
if (FileNumbers.Length == 0)
|
||||
{
|
||||
for(bucle=0;bucle<255;bucle++)
|
||||
{
|
||||
if (FHandle[bucle]!=null)
|
||||
try
|
||||
{
|
||||
FHandle[bucle].Close();
|
||||
}
|
||||
catch (Exception e) {e.GetType (); FHandle[bucle]=null ;}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for(bucle=0;bucle<FileNumbers.Length;bucle++)
|
||||
{
|
||||
if ( FHandle [ FileNumbers[bucle] - 1 ] != null )
|
||||
{
|
||||
if (FileNumbers[bucle]>0 && FileNumbers[bucle]<256)
|
||||
{
|
||||
try
|
||||
{
|
||||
FHandle[ FileNumbers[bucle] - 1].Close();
|
||||
FHandle[ FileNumbers[bucle] - 1]=null;
|
||||
}
|
||||
catch (Exception e){e.GetType (); FHandle[ FileNumbers[bucle] - 1]= null ;}
|
||||
}
|
||||
else
|
||||
throw new System.IO.IOException (FileNumbers[bucle].ToString() + " Does not exist",52);
|
||||
}
|
||||
else
|
||||
throw new System.IO.IOException (FileNumbers[bucle].ToString() + " Does not exist",52);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public static void FileGetObject (System.Int32 FileNumber, ref System.Object Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.ValueType Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Array Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] ref System.Boolean ArrayIsDynamic, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] ref System.Boolean StringIsFixedLength) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Boolean Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Byte Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Int16 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Int32 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Int64 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Char Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Single Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Double Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.Decimal Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.String Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] ref System.Boolean StringIsFixedLength) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileGet (System.Int32 FileNumber, ref System.DateTime Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] ref System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePutObject (System.Int32 FileNumber, System.Object Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
[System.ObsoleteAttribute("Use FilePutObject to write Object types, or coerce FileNumber and RecordNumber to Integer for writing non-Object types", false)]
|
||||
public static void FilePut (System.Object FileNumber, System.Object Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Object RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.ValueType Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Array Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] System.Boolean ArrayIsDynamic, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] System.Boolean StringIsFixedLength) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Boolean Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Byte Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Int16 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Int32 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Int64 Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Char Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Single Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Double Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.Decimal Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.String Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(false)] System.Boolean StringIsFixedLength) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FilePut (System.Int32 FileNumber, System.DateTime Value, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(-1)] System.Int64 RecordNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Print (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void PrintLine (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Object Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Boolean Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Byte Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Int16 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Int32 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Int64 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Char Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Single Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Double Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.Decimal Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.String Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Input (System.Int32 FileNumber, ref System.DateTime Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Write (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void WriteLine (System.Int32 FileNumber, params System.Object[] Output) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String InputString (System.Int32 FileNumber, System.Int32 CharCount) { throw new NotImplementedException (); }
|
||||
|
||||
[MonoTODO("Needs testing")]
|
||||
public static System.String LineInput (System.Int32 FileNumber)
|
||||
{
|
||||
string retval="";
|
||||
int buf='\x00';
|
||||
bool found=false;
|
||||
if ( FileNumber<1 || FileNumber>255)
|
||||
throw new System.IO.IOException (FileNumber.ToString() + " does not exists",52);
|
||||
if ( FHandle[FileNumber - 1] == null)
|
||||
throw new System.IO.IOException (FileNumber.ToString() + " does not exists",52);
|
||||
|
||||
if ( EOF(FileNumber) )
|
||||
throw new System.IO.EndOfStreamException();
|
||||
|
||||
while (!found)
|
||||
{
|
||||
|
||||
buf=FHandle[FileNumber - 1].ReadByte();
|
||||
if ( (buf == -1) || (buf == '\x0A' ) )
|
||||
found=true;
|
||||
else
|
||||
retval+= ((char)buf).ToString();
|
||||
}
|
||||
if ( retval.Length > 0 )
|
||||
if ( (buf == '\x0A') && (retval[retval.Length -1 ] == '\x0D') )
|
||||
retval=retval.Substring(0,retval.Length -1) ;
|
||||
Console.WriteLine (retval);
|
||||
return retval;
|
||||
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public static void Lock (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Lock (System.Int32 FileNumber, System.Int64 Record) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Lock (System.Int32 FileNumber, System.Int64 FromRecord, System.Int64 ToRecord) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Unlock (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Unlock (System.Int32 FileNumber, System.Int64 Record) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Unlock (System.Int32 FileNumber, System.Int64 FromRecord, System.Int64 ToRecord) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void FileWidth (System.Int32 FileNumber, System.Int32 RecordWidth) { throw new NotImplementedException (); }
|
||||
|
||||
[MonoTODO("Needs testing")]
|
||||
public static System.Int32 FreeFile ()
|
||||
{
|
||||
int bucle=0;
|
||||
bool found=false;
|
||||
for (bucle=0;bucle<255;bucle++)
|
||||
if (FHandle[bucle]==null)
|
||||
{
|
||||
found=true;
|
||||
break;
|
||||
}
|
||||
if (!found)
|
||||
throw new System.IO.IOException ("More than 255 files are in use",67);
|
||||
else
|
||||
return bucle+1;
|
||||
}
|
||||
[MonoTODO]
|
||||
public static void Seek (System.Int32 FileNumber, System.Int64 Position) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int64 Seek (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
|
||||
[MonoTODO("Needs testing")]
|
||||
public static System.Boolean EOF ( System.Int32 FileNumber)
|
||||
{
|
||||
if (FileNumber<1 || FileNumber>255)
|
||||
throw new System.IO.IOException (FileNumber.ToString() + " does not exists",52);
|
||||
if ( FHandle[FileNumber - 1] == null)
|
||||
throw new System.IO.IOException (FileNumber.ToString() + " does not exists",52);
|
||||
if ( FHandle[FileNumber - 1].Length == FHandle[FileNumber - 1].Position)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public static System.Int64 Loc (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int64 LOF (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.TabInfo TAB () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.TabInfo TAB (System.Int16 Column) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.SpcInfo SPC (System.Int16 Count) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.OpenMode FileAttr (System.Int32 FileNumber) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Reset () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Rename (System.String OldPath, System.String NewPath) { throw new NotImplementedException (); }
|
||||
// Events
|
||||
|
||||
};
|
||||
}
|
||||
@@ -3,8 +3,10 @@
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
// Francesco Delfino ([email protected]
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
// 2003 Tipic, Inc. (http://www.tipic.com)
|
||||
//
|
||||
|
||||
using System;
|
||||
@@ -18,7 +20,9 @@ namespace Microsoft.VisualBasic
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static Microsoft.VisualBasic.ErrObject Err () { throw new NotImplementedException (); }
|
||||
public static Microsoft.VisualBasic.ErrObject Err () {
|
||||
return Microsoft.VisualBasic.CompilerServices.ProjectData.Err;
|
||||
}
|
||||
[MonoTODO]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public static System.Int32 Erl () { throw new NotImplementedException (); }
|
||||
|
||||
+9
-3
@@ -3,13 +3,15 @@
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
// Francesco Delfino ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
// 2002 Tipic, Inc (http://www.tipic.com)
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
@@ -19,8 +21,12 @@ namespace Microsoft.VisualBasic.CompilerServices
|
||||
// Properties
|
||||
// Methods
|
||||
public static System.Boolean FromString (System.String Value) { return System.Boolean.Parse(Value); }
|
||||
[MonoTODO]
|
||||
public static System.Boolean FromObject (System.Object Value) { throw new NotImplementedException(); }
|
||||
public static System.Boolean FromObject (System.Object Value)
|
||||
{
|
||||
if ((object)Value == null) return false;
|
||||
//if (Value.GetType() == typeof(string)) return FromString((string)Value);
|
||||
else return System.Convert.ToBoolean(Value);
|
||||
}
|
||||
// Events
|
||||
};
|
||||
}
|
||||
+10
-3
@@ -3,13 +3,15 @@
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
// Francesco Delfino ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
// 2002 Tipic, Inc (http://www.tipic.com)
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
@@ -19,8 +21,13 @@ namespace Microsoft.VisualBasic.CompilerServices
|
||||
// Properties
|
||||
// Methods
|
||||
public static System.Byte FromString (System.String Value) { return System.Byte.Parse(Value); }
|
||||
[MonoTODO]
|
||||
public static System.Byte FromObject (System.Object Value) { throw new NotImplementedException(); }
|
||||
|
||||
public static System.Byte FromObject (System.Object Value)
|
||||
{
|
||||
if ((object)Value == null) return 0;
|
||||
else return System.Convert.ToByte(Value);
|
||||
}
|
||||
|
||||
// Events
|
||||
};
|
||||
}
|
||||
+13
-5
@@ -3,13 +3,15 @@
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
// Francesco Delfino ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
// 2002 Tipic, Inc (http://www.tipic.com)
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
@@ -19,10 +21,16 @@ namespace Microsoft.VisualBasic.CompilerServices
|
||||
// Properties
|
||||
// Methods
|
||||
public static System.DateTime FromString (System.String Value) { return System.DateTime.Parse(Value); }
|
||||
[MonoTODO]
|
||||
public static System.DateTime FromString (System.String Value, System.Globalization.CultureInfo culture) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.DateTime FromObject (System.Object Value) { throw new NotImplementedException (); }
|
||||
public static System.DateTime FromString (System.String Value, System.Globalization.CultureInfo culture)
|
||||
{
|
||||
return System.DateTime.Parse (Value,culture);
|
||||
}
|
||||
public static System.DateTime FromObject (System.Object Value) {
|
||||
if ((object)Value ==null)
|
||||
return new DateTime(1,1,1);
|
||||
//if (Value.GetType() == typeof(string)) return FromString((string)Value);
|
||||
else return System.Convert.ToDateTime(Value);
|
||||
}
|
||||
// Events
|
||||
};
|
||||
}
|
||||
+10
-3
@@ -3,13 +3,15 @@
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
// Francesco Delfino ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
// 2002 Tipic, Inc (http://www.tipic.com)
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
@@ -19,8 +21,13 @@ namespace Microsoft.VisualBasic.CompilerServices
|
||||
// Properties
|
||||
// Methods
|
||||
public static System.Int32 FromString (System.String Value) { return System.Int32.Parse(Value); }
|
||||
[MonoTODO]
|
||||
public static System.Int32 FromObject (System.Object Value) { throw new NotImplementedException (); }
|
||||
|
||||
public static System.Int32 FromObject (System.Object Value)
|
||||
{
|
||||
if ((object)Value==null)
|
||||
return 0;
|
||||
else return System.Convert.ToInt32(Value);
|
||||
}
|
||||
// Events
|
||||
};
|
||||
}
|
||||
+3
-1
@@ -3,13 +3,15 @@
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
// Francesco Delfino ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
// 2002 Tipic, Inc (http://www.tipic.com)
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
sealed public class ObjectType {
|
||||
|
||||
+98
-80
@@ -1,80 +1,98 @@
|
||||
//
|
||||
// ProjectData.cs
|
||||
//
|
||||
// Authors:
|
||||
// Martin Adoue ([email protected])
|
||||
// Chris J Breisch ([email protected])
|
||||
//
|
||||
// (C) 2002 Ximian Inc.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
/// <summary>
|
||||
/// FIXME: Summary description for ProjectData.
|
||||
/// </summary>
|
||||
|
||||
[MonoTODO]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[StructLayout(LayoutKind.Auto)]
|
||||
public class ProjectData{
|
||||
|
||||
private static System.Exception projectError;
|
||||
private static int erl;
|
||||
|
||||
/// <summary>
|
||||
/// FIXME: Summary description for ClearProjectError
|
||||
/// </summary>
|
||||
public static void ClearProjectError()
|
||||
{
|
||||
projectError = null;
|
||||
erl = 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// FIXME: Summary description for SetProjectError
|
||||
/// </summary>
|
||||
/// <param name="ex">FIXME: Required. Summary description for ex</param>
|
||||
[MonoTODO]
|
||||
public static void SetProjectError(System.Exception ex)
|
||||
{
|
||||
SetProjectError(ex, 0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// FIXME: Summary description for SetProjectError
|
||||
/// </summary>
|
||||
/// <param name="ex">FIXME: Required. Summary description for ex</param>
|
||||
/// <param name="lErl">FIXME: Required. Summary description for lErl</param>
|
||||
[MonoTODO]
|
||||
public static void SetProjectError(System.Exception ex, int lErl)
|
||||
{
|
||||
projectError = ex;
|
||||
erl = lErl;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
[MonoTODO]
|
||||
public static void EndApp()
|
||||
{
|
||||
//FIXME
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
[MonoTODO]
|
||||
protected static void Finalize()
|
||||
{
|
||||
//FIXME
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
//
|
||||
// ProjectData.cs
|
||||
//
|
||||
// Authors:
|
||||
// Martin Adoue ([email protected])
|
||||
// Chris J Breisch ([email protected])
|
||||
// Francesco Delfino ([email protected])
|
||||
//
|
||||
// (C) 2002 Ximian Inc.
|
||||
// 2002 Tipic, Inc. (http://www.tipic.com)
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
/// <summary>
|
||||
/// FIXME: Summary description for ProjectData.
|
||||
/// </summary>
|
||||
|
||||
[MonoTODO]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[StructLayout(LayoutKind.Auto)]
|
||||
public class ProjectData{
|
||||
|
||||
internal static System.Exception projectError;
|
||||
internal static int erl;
|
||||
internal static Microsoft.VisualBasic.ErrObject pErr;
|
||||
|
||||
internal static Microsoft.VisualBasic.ErrObject Err
|
||||
{
|
||||
get
|
||||
{
|
||||
if (pErr==null)
|
||||
pErr=new ErrObject();
|
||||
|
||||
return pErr;
|
||||
}
|
||||
set
|
||||
{
|
||||
pErr = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// FIXME: Summary description for ClearProjectError
|
||||
/// </summary>
|
||||
public static void ClearProjectError()
|
||||
{
|
||||
projectError = null;
|
||||
erl = 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// FIXME: Summary description for SetProjectError
|
||||
/// </summary>
|
||||
/// <param name="ex">FIXME: Required. Summary description for ex</param>
|
||||
[MonoTODO]
|
||||
public static void SetProjectError(System.Exception ex)
|
||||
{
|
||||
SetProjectError(ex, 0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// FIXME: Summary description for SetProjectError
|
||||
/// </summary>
|
||||
/// <param name="ex">FIXME: Required. Summary description for ex</param>
|
||||
/// <param name="lErl">FIXME: Required. Summary description for lErl</param>
|
||||
[MonoTODO]
|
||||
public static void SetProjectError(System.Exception ex, int lErl)
|
||||
{
|
||||
projectError = ex;
|
||||
erl = lErl;
|
||||
Err.SetException (ex);
|
||||
}
|
||||
|
||||
/*
|
||||
[MonoTODO]
|
||||
public static void EndApp()
|
||||
{
|
||||
//FIXME
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
[MonoTODO]
|
||||
protected static void Finalize()
|
||||
{
|
||||
//FIXME
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
+64
-31
@@ -3,13 +3,15 @@
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
// Francesco Delfino ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
// 2002 Tipic, Inc. (http://www.tipic.com)
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
namespace Microsoft.VisualBasic.CompilerServices
|
||||
{
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
@@ -18,36 +20,67 @@ namespace Microsoft.VisualBasic.CompilerServices
|
||||
// Constructors
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static System.String FromBoolean (System.Boolean Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromByte (System.Byte Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromChar (System.Char Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromShort (System.Int16 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromInteger (System.Int32 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromLong (System.Int64 Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromSingle (System.Single Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromDouble (System.Double Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromSingle (System.Single Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromDouble (System.Double Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromDate (System.DateTime Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromDecimal (System.Decimal Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromDecimal (System.Decimal Value, System.Globalization.NumberFormatInfo NumberFormat) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.String FromObject (System.Object Value) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Int32 StrCmp (System.String sLeft, System.String sRight, System.Boolean TextCompare) { throw new NotImplementedException (); }
|
||||
public static System.String FromBoolean (System.Boolean Value) {
|
||||
return Convert.ToString(Value);
|
||||
}
|
||||
public static System.String FromByte (System.Byte Value)
|
||||
{
|
||||
return Convert.ToString(Value);
|
||||
}
|
||||
public static System.String FromChar (System.Char Value)
|
||||
{
|
||||
return Convert.ToString(Value);
|
||||
}
|
||||
public static System.String FromShort (System.Int16 Value)
|
||||
{
|
||||
return Convert.ToString(Value);
|
||||
}
|
||||
public static System.String FromInteger (System.Int32 Value)
|
||||
{
|
||||
return Convert.ToString(Value);
|
||||
}
|
||||
public static System.String FromLong (System.Int64 Value)
|
||||
{
|
||||
return Convert.ToString(Value);
|
||||
}
|
||||
public static System.String FromSingle (System.Single Value)
|
||||
{
|
||||
return Convert.ToString(Value);
|
||||
}
|
||||
public static System.String FromDouble (System.Double Value)
|
||||
{
|
||||
return Convert.ToString(Value);
|
||||
}
|
||||
public static System.String FromSingle (System.Single Value, System.Globalization.NumberFormatInfo NumberFormat)
|
||||
{
|
||||
return Convert.ToString(Value,NumberFormat);
|
||||
}
|
||||
public static System.String FromDouble (System.Double Value, System.Globalization.NumberFormatInfo NumberFormat)
|
||||
{
|
||||
return Convert.ToString(Value,NumberFormat);
|
||||
}
|
||||
public static System.String FromDate (System.DateTime Value)
|
||||
{
|
||||
return Convert.ToString(Value);
|
||||
}
|
||||
public static System.String FromDecimal (System.Decimal Value)
|
||||
{
|
||||
return Convert.ToString(Value);
|
||||
}
|
||||
public static System.String FromDecimal (System.Decimal Value, System.Globalization.NumberFormatInfo NumberFormat)
|
||||
{
|
||||
return Convert.ToString(Value,NumberFormat);
|
||||
}
|
||||
public static System.String FromObject (System.Object Value)
|
||||
{
|
||||
if ((object)Value==null) return "";
|
||||
else return Convert.ToString(Value);
|
||||
}
|
||||
[MonoTODO("Last boolean parameter ignored")]
|
||||
public static System.Int32 StrCmp (System.String sLeft, System.String sRight, System.Boolean TextCompare)
|
||||
{
|
||||
return sLeft.CompareTo(sRight);
|
||||
}
|
||||
[MonoTODO]
|
||||
public static System.Boolean StrLike (System.String Source, System.String Pattern, Microsoft.VisualBasic.CompareMethod CompareOption) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
|
||||
@@ -4,8 +4,12 @@
|
||||
// Authors:
|
||||
// Martin Adoue ([email protected])
|
||||
// Chris J Breisch ([email protected])
|
||||
// Francesco Delfino ([email protected])
|
||||
// Daniel Campos ([email protected])
|
||||
// Rafael Teixeira ([email protected])
|
||||
//
|
||||
// (C) 2002 Ximian Inc.
|
||||
// 2002 Tipic, Inc. (http://www.tipic.com)
|
||||
//
|
||||
|
||||
using System;
|
||||
@@ -36,12 +40,11 @@ namespace Microsoft.VisualBasic
|
||||
/// </summary>
|
||||
/// <param name="String">Required. Any valid Char or String expression. If String is a String expression, only the first character of the string is used for input. If String is Nothing or contains no characters, an ArgumentException error occurs.</param>
|
||||
[MonoTODO]
|
||||
public static int Asc(char String)
|
||||
public static int Asc(char Char)
|
||||
{
|
||||
//FIXME: Check the docs, it says something about Locales, DBCS, etc.
|
||||
throw new NotImplementedException();
|
||||
return (int)Char;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -51,8 +54,8 @@ namespace Microsoft.VisualBasic
|
||||
[MonoTODO]
|
||||
public static int Asc(string String)
|
||||
{
|
||||
if ((String == null) || (String.Length != 1))
|
||||
throw new ArgumentException("Length of argument 'String' must be one.", "String");
|
||||
if ((String == null) || (String.Length < 1))
|
||||
throw new ArgumentException("Length of argument 'String' must be at least one.", "String");
|
||||
|
||||
//FIXME: Check the docs, it says something about Locales, DBCS, etc.
|
||||
return (int) String.ToCharArray(0, 1)[0];
|
||||
@@ -277,7 +280,7 @@ namespace Microsoft.VisualBasic
|
||||
/// Returns an expression formatted as a currency value using the currency symbol defined in the system control panel.
|
||||
/// </summary>
|
||||
/// <param name="Expression">Required. Expression to be formatted.</param>
|
||||
/// <param name="NumDigitsAfterDecimal">Optional. Numeric value indicating how many places are displayed to the right of the decimal. Default value is –1, which indicates that the computer's regional settings are used.</param>
|
||||
/// <param name="NumDigitsAfterDecimal">Optional. Numeric value indicating how many places are displayed to the right of the decimal. Default value is 1, which indicates that the computer's regional settings are used.</param>
|
||||
/// <param name="IncludeLeadingDigit">Optional. Tristate enumeration that indicates whether or not a leading zero is displayed for fractional values. See Settings for values.</param>
|
||||
/// <param name="UseParensForNegativeNumbers">Optional. Tristate enumeration that indicates whether or not to place negative values within parentheses. See Settings for values.</param>
|
||||
/// <param name="GroupDigits">Optional. Tristate enumeration that indicates whether or not numbers are grouped using the group delimiter specified in the computer's regional settings. See Settings for values.</param>
|
||||
@@ -335,7 +338,7 @@ namespace Microsoft.VisualBasic
|
||||
/// Returns an expression formatted as a number.
|
||||
/// </summary>
|
||||
/// <param name="Expression">Required. Expression to be formatted.</param>
|
||||
/// <param name="NumDigitsAfterDecimal">Optional. Numeric value indicating how many places are displayed to the right of the decimal. Default value is –1, which indicates that the computer's regional settings are used.</param>
|
||||
/// <param name="NumDigitsAfterDecimal">Optional. Numeric value indicating how many places are displayed to the right of the decimal. Default value is 1, which indicates that the computer's regional settings are used.</param>
|
||||
/// <param name="IncludeLeadingDigit">Optional. Tristate enumeration that indicates whether or not a leading zero is displayed for fractional values. See Settings for values.</param>
|
||||
/// <param name="UseParensForNegativeNumbers">Optional. Tristate enumeration that indicates whether or not to place negative values within parentheses. See Settings for values.</param>
|
||||
/// <param name="GroupDigits">Optional. Tristate enumeration that indicates whether or not numbers are grouped using the group delimiter specified in the computer's regional settings. See Settings for values.</param>
|
||||
@@ -363,7 +366,7 @@ namespace Microsoft.VisualBasic
|
||||
/// Returns an expression formatted as a percentage (that is, multiplied by 100) with a trailing % character.
|
||||
/// </summary>
|
||||
/// <param name="Expression">Required. Expression to be formatted.</param>
|
||||
/// <param name="NumDigitsAfterDecimal">Optional. Numeric value indicating how many places are displayed to the right of the decimal. Default value is –1, which indicates that the computer's regional settings are used.</param>
|
||||
/// <param name="NumDigitsAfterDecimal">Optional. Numeric value indicating how many places are displayed to the right of the decimal. Default value is 1, which indicates that the computer's regional settings are used.</param>
|
||||
/// <param name="IncludeLeadingDigit">Optional. Tristate enumeration that indicates whether or not a leading zero is displayed for fractional values. See Settings for values.</param>
|
||||
/// <param name="UseParensForNegativeNumbers">Optional. Tristate enumeration that indicates whether or not to place negative values within parentheses. See Settings for values.</param>
|
||||
/// <param name="GroupDigits">Optional. Tristate enumeration that indicates whether or not numbers are grouped using the group delimiter specified in the computer's regional settings. See Settings for values.</param>
|
||||
@@ -407,6 +410,23 @@ namespace Microsoft.VisualBasic
|
||||
return Str.ToCharArray(Index -1, 1)[0];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an integer specifying the start position of the first occurrence of one string within another.
|
||||
/// </summary>
|
||||
/// <param name="Start">Required. Numeric expression that sets the starting position for each search. If omitted, search begins at the first character position. The start index is 1 based.</param>
|
||||
/// <param name="String1">Required. String expression being searched.</param>
|
||||
/// <param name="String2">Required. String expression sought.</param>
|
||||
/// <param name="Compare">Optional. Specifies the type of string comparison. If Compare is omitted, the Option Compare setting determines the type of comparison. Specify a valid LCID (LocaleID) to use locale-specific rules in the comparison. </param>
|
||||
[MonoTODO("Needs testing")]
|
||||
public static int InStr(string String1,
|
||||
string String2,
|
||||
[OptionCompare]
|
||||
[Optional]
|
||||
[DefaultValue(CompareMethod.Binary)]
|
||||
CompareMethod Compare)
|
||||
{
|
||||
return InStr(1, String1, String2, Compare);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an integer specifying the start position of the first occurrence of one string within another.
|
||||
@@ -445,14 +465,13 @@ namespace Microsoft.VisualBasic
|
||||
*/
|
||||
|
||||
//FIXME: someone with a non US setup should test this.
|
||||
|
||||
switch (Compare)
|
||||
{
|
||||
case CompareMethod.Text:
|
||||
return System.Globalization.CultureInfo.CurrentCulture.CompareInfo.IndexOf(String2, String1, Start - 1) + 1;
|
||||
|
||||
case CompareMethod.Binary:
|
||||
return String2.IndexOf(String1, Start - 1) + 1;
|
||||
return String1.IndexOf(String2, Start - 1) + 1;
|
||||
default:
|
||||
throw new System.ArgumentException("Argument 'Compare' must be CompareMethod.Binary or CompareMethod.Text.", "Compare");
|
||||
}
|
||||
@@ -465,7 +484,7 @@ namespace Microsoft.VisualBasic
|
||||
/// </summary>
|
||||
/// <param name="StringCheck">Required. String expression being searched.</param>
|
||||
/// <param name="StringMatch">Required. String expression being searched for.</param>
|
||||
/// <param name="Start">Optional. Numeric expression that sets the one-based starting position for each search, starting from the left side of the string. If Start is omitted, –1 is used, which means that the search begins at the last character position. Search then proceeds from right to left.</param>
|
||||
/// <param name="Start">Optional. Numeric expression that sets the one-based starting position for each search, starting from the left side of the string. If Start is omitted, 1 is used, which means that the search begins at the last character position. Search then proceeds from right to left.</param>
|
||||
/// <param name="Compare">Optional. Numeric value indicating the kind of comparison to use when evaluating substrings. If omitted, a binary comparison is performed. See Settings for values.</param>
|
||||
[MonoTODO]
|
||||
public static int InStrRev(string StringCheck,
|
||||
@@ -721,8 +740,7 @@ namespace Microsoft.VisualBasic
|
||||
if ((Str == null) || (Str.Length == 0))
|
||||
return String.Empty; // VB.net does this.
|
||||
|
||||
Str.TrimStart(null);
|
||||
return Str;
|
||||
return Str.TrimStart(null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -735,8 +753,7 @@ namespace Microsoft.VisualBasic
|
||||
if ((Str == null) || (Str.Length == 0))
|
||||
return String.Empty; // VB.net does this.
|
||||
|
||||
Str.TrimEnd(null);
|
||||
return Str;
|
||||
return Str.TrimEnd(null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -749,8 +766,7 @@ namespace Microsoft.VisualBasic
|
||||
if ((Str == null) || (Str.Length == 0))
|
||||
return String.Empty; // VB.net does this.
|
||||
|
||||
Str.Trim();
|
||||
return Str;
|
||||
return Str.Trim();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -808,7 +824,7 @@ namespace Microsoft.VisualBasic
|
||||
/// <param name="Find">Required. Substring being searched for.</param>
|
||||
/// <param name="Replacement">Required. Replacement substring.</param>
|
||||
/// <param name="Start">Optional. Position within Expression where substring search is to begin. If omitted, 1 is assumed.</param>
|
||||
/// <param name="Count">Optional. Number of substring substitutions to perform. If omitted, the default value is –1, which means make all possible substitutions.</param>
|
||||
/// <param name="Count">Optional. Number of substring substitutions to perform. If omitted, the default value is 1, which means make all possible substitutions.</param>
|
||||
/// <param name="Compare">Optional. Numeric value indicating the kind of comparison to use when evaluating substrings. See Settings for values.</param>
|
||||
[MonoTODO("Needs testing")]
|
||||
public static string Replace(string Expression,
|
||||
@@ -853,8 +869,7 @@ namespace Microsoft.VisualBasic
|
||||
if (Length < 0)
|
||||
throw new ArgumentException("Argument 'Length' must be greater or equal to zero.", "Length");
|
||||
|
||||
//FIXME
|
||||
throw new NotImplementedException();
|
||||
return Str.Substring (Str.Length - Length);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -893,7 +908,7 @@ namespace Microsoft.VisualBasic
|
||||
/// </summary>
|
||||
/// <param name="Expression">Required. String expression containing substrings and delimiters. If Expression is a zero-length string (""), the Split function returns an array with no elements and no data.</param>
|
||||
/// <param name="Delimiter">Optional. Single character used to identify substring limits. If Delimiter is omitted, the space character (" ") is assumed to be the delimiter. If Delimiter is a zero-length string, a single-element array containing the entire Expression string is returned.</param>
|
||||
/// <param name="Limit">Optional. Number of substrings to be returned; the default, –1, indicates that all substrings are returned.</param>
|
||||
/// <param name="Limit">Optional. Number of substrings to be returned; the default, 1, indicates that all substrings are returned.</param>
|
||||
/// <param name="Compare">Optional. Numeric value indicating the comparison to use when evaluating substrings. See Settings for values.</param>
|
||||
[MonoTODO]
|
||||
public static string[] Split(string Expression,
|
||||
@@ -1059,27 +1074,26 @@ namespace Microsoft.VisualBasic
|
||||
/// <param name="Expression">Required. String expression whose characters are to be reversed. If Expression is a zero-length string (""), a zero-length string is returned.</param>
|
||||
public static string StrReverse(string Expression)
|
||||
{
|
||||
|
||||
if (Expression == null)
|
||||
return String.Empty; // "If Expression is a zero-length string (""), a zero-length string is returned."
|
||||
|
||||
int count = Expression.Length;
|
||||
|
||||
if (count == 0)
|
||||
return String.Empty; // "If Expression is a zero-length string (""), a zero-length string is returned."
|
||||
|
||||
/*
|
||||
* This would be much faster if I had access to the internal array.
|
||||
* I'd just reverse the array. Maybe as strings are inmutable in .net (is this true in Mono?)
|
||||
* it'll be the same. Comments?
|
||||
*/
|
||||
char[] chars = new char[count - 1];
|
||||
chars = Expression.ToCharArray();
|
||||
|
||||
System.Array.Reverse (chars);
|
||||
|
||||
return new string(chars);
|
||||
|
||||
// patched by Daniel Campos
|
||||
// [email protected]
|
||||
if (Expression != null)
|
||||
{
|
||||
if ( Expression.Length>0)
|
||||
{
|
||||
int counter=0;
|
||||
char[] buf=new char[Expression.Length];
|
||||
|
||||
for (int backwardsCounter=Expression.Length - 1;
|
||||
backwardsCounter>=0;
|
||||
backwardsCounter--)
|
||||
buf[counter++]=Expression[backwardsCounter];
|
||||
return new string(buf);
|
||||
}
|
||||
else
|
||||
return String.Empty;
|
||||
}
|
||||
else
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -3,8 +3,10 @@
|
||||
//
|
||||
// Author:
|
||||
// Chris J Breisch ([email protected])
|
||||
// Francesco Delfino ([email protected])
|
||||
//
|
||||
// (C) 2002 Chris J Breisch
|
||||
// (C) 2002 Tipic Inc
|
||||
//
|
||||
|
||||
using System;
|
||||
@@ -15,15 +17,37 @@ namespace Microsoft.VisualBasic {
|
||||
// Declarations
|
||||
// Constructors
|
||||
// Properties
|
||||
static Random rnd = new Random();
|
||||
static float last = (float)rnd.NextDouble();
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
public static System.Single Rnd () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Single Rnd (System.Single Number) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Randomize () { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static void Randomize (System.Double Number) { throw new NotImplementedException (); }
|
||||
public static float Rnd () {
|
||||
last = (float)rnd.NextDouble();
|
||||
return last;
|
||||
}
|
||||
public static float Rnd (float Number)
|
||||
{
|
||||
if (Number == 0.0)
|
||||
{
|
||||
return last;
|
||||
}
|
||||
else if (Number < 0.0 )
|
||||
{
|
||||
//fd: What does this mean?
|
||||
//fd: ms-help://MS.VSCC/MS.MSDNVS/script56/html/vsstmRandomize
|
||||
//fd: ms-help://MS.VSCC/MS.MSDNVS/script56/html/vsfctrnd.htm
|
||||
Randomize(Number);
|
||||
return Rnd();
|
||||
}
|
||||
return Rnd();
|
||||
}
|
||||
public static void Randomize () {
|
||||
rnd = new Random();
|
||||
}
|
||||
[MonoTODO("Rethink the double => int conversion")]
|
||||
public static void Randomize (double Number)
|
||||
{
|
||||
rnd = new Random((int)Number);
|
||||
}
|
||||
// Events
|
||||
};
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
2003-01-17 Zoltan Varga <[email protected]>
|
||||
|
||||
* MonoSymbolWriter.cs (OpenMethod): Make it work on constructors.
|
||||
|
||||
2002-10-13 Martin Baulig <[email protected]>
|
||||
|
||||
* MonoSymbolTable.cs: Set version number to 28.
|
||||
|
||||
@@ -517,7 +517,7 @@ namespace Mono.CSharp.Debugger
|
||||
|
||||
int index = (token & 0xffffff) - 1;
|
||||
|
||||
MethodBuilder mb = (MethodBuilder) mbuilder_array [index];
|
||||
MethodBase mb = (MethodBase) mbuilder_array [index];
|
||||
|
||||
current_method = new SourceMethod (mb);
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
2003-01-16 Daniel Morgan <[email protected]>
|
||||
|
||||
* Mono.Data.Db2Client/DB2ClientConnection.cs: added parsing and setting
|
||||
of connection string values. Prior to this change, the server, username, and
|
||||
authentication were hard-coded.
|
||||
|
||||
* Mono.Data.Db2Client/DB2ClientUtils.cs: prevent warning about
|
||||
unreachable code
|
||||
|
||||
* Test/TestDB2Conn/TestDB2Conn.cs: modify test to accept
|
||||
database, username, and password from command line. Also, test
|
||||
a CREATE TABLE statement with ExecuteNonQuery()
|
||||
|
||||
2003-01-16 Daniel Morgan <[email protected]>
|
||||
|
||||
* Mono.Data.Db2Client.build: added file for Windows build
|
||||
|
||||
2003-01-16 Rodrigo Moya <[email protected]>
|
||||
|
||||
* makefile.gnu: added --unsafe command line option, needed for unsafe
|
||||
code. The IBM DB2 provider now compiles on Mono.
|
||||
|
||||
* list: added missing file.
|
||||
|
||||
2003-01-15 Rodrigo Moya <[email protected]>
|
||||
|
||||
Added IBM DB2 provider from cleared <[email protected]>.
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<!-- NAnt build file for Mono.Data.DB2Client.dll -->
|
||||
|
||||
<project name="Mono.Data.DB2Client" default="build">
|
||||
<property name="debug" value="false"/>
|
||||
|
||||
<target name="build">
|
||||
<csc target="library" output="../lib/Mono.Data.DB2Client.dll" debug="${debug}">
|
||||
<arg value="/nowarn:1595"/>
|
||||
<arg value="/nowarn:0067"/>
|
||||
<arg value="/nowarn:0109"/>
|
||||
<arg value="/nowarn:0169"/>
|
||||
<arg value="/nowarn:0649"/>
|
||||
<arg value="/unsafe"/>
|
||||
<arg value="/noconfig"/>
|
||||
<arg value="/r:System.dll"/>
|
||||
<arg value="/r:System.Xml.dll"/>
|
||||
<arg value="/r:System.Data.dll"/>
|
||||
<sources>
|
||||
<includes name="**/*.cs"/>
|
||||
<excludes name="Test/**"/>
|
||||
</sources>
|
||||
<references>
|
||||
<includes name="../lib/corlib.dll"/>
|
||||
<includes name="../lib/System.dll"/>
|
||||
<includes name="../lib/System.Xml.dll"/>
|
||||
<includes name="../lib/System.Data.dll"/>
|
||||
</references>
|
||||
</csc>
|
||||
<copy file="../lib/System.Data.dll" tofile="Test/System.Data.dll"/>
|
||||
<copy file="../lib/Mono.Data.DB2Client.dll" tofile="Test/Mono.Data.DB2Client.dll"/>
|
||||
<copy file="../lib/Mono.Data.DB2Client.dll" tofile="Mono.Data.DB2Client/Mono.Data.DB2Client.dll"/>
|
||||
<copy file="../lib/Mono.Data.DB2Client.dll" tofile="../System.Data/Test/Mono.Data.DB2Client.dll"/>
|
||||
</target>
|
||||
<target name="test" depends="build">
|
||||
<nant basedir="Test" target="test"/>
|
||||
</target>
|
||||
<target name="clean">
|
||||
<delete file="Test/System.Data.dll" failonerror="false"/>
|
||||
<delete file="../lib/Mono.Data.DB2Client.dll" failonerror="false"/>
|
||||
<delete file="Test/Mono.Data.DB2Client.dll" failonerror="false"/>
|
||||
</target>
|
||||
</project>
|
||||
@@ -0,0 +1,58 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
//
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
//
|
||||
[assembly: AssemblyTitle("")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
//
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified, the assembly is not signed.
|
||||
// (*) KeyName refers to a key that has been installed in the Crypto Service
|
||||
// Provider (CSP) on your machine. KeyFile refers to a file which contains
|
||||
// a key.
|
||||
// (*) If the KeyFile and the KeyName values are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP, that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the KeyFile is installed into the CSP and used.
|
||||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
|
||||
// When specifying the KeyFile, the location of the KeyFile should be
|
||||
// relative to the project output directory which is
|
||||
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
|
||||
// located in the project directory, you would specify the AssemblyKeyFile
|
||||
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
[assembly: AssemblyDelaySign(false)]
|
||||
[assembly: AssemblyKeyFile("")]
|
||||
[assembly: AssemblyKeyName("")]
|
||||
@@ -0,0 +1,279 @@
|
||||
#region Licence
|
||||
/// DB2DriverCS - A DB2 driver for .Net
|
||||
/// Copyright 2003 By Christopher Bockner
|
||||
/// Released under the terms of the MIT/X11 Licence
|
||||
/// Please refer to the Licence.txt file that should be distributed with this package
|
||||
/// This software requires that DB2 client software be installed correctly on the machine
|
||||
/// (or instance) on which the driver is running.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
|
||||
namespace DB2ClientCS
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for DB2ClientCommand.
|
||||
/// </summary>
|
||||
public class DB2ClientCommand : IDbCommand
|
||||
{
|
||||
#region Private data members
|
||||
private string commandText;
|
||||
private DB2ClientConnection db2Conn;
|
||||
private DB2ClientTransaction db2Trans;
|
||||
private int commandTimeout;
|
||||
private bool prepared = false;
|
||||
private IntPtr hwndStmt; //Our statement handle
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
/// <summary>
|
||||
/// Default constructor. Since I'm using CLI functions to do this stuff, we're stuck
|
||||
/// until we get the database environment handle.
|
||||
/// </summary>
|
||||
public DB2ClientCommand()
|
||||
{
|
||||
hwndStmt = IntPtr.Zero;
|
||||
}
|
||||
public DB2ClientCommand(string commandStr)
|
||||
{
|
||||
commandText = commandStr;
|
||||
hwndStmt = IntPtr.Zero;
|
||||
}
|
||||
public DB2ClientCommand(string commandStr, DB2ClientConnection con)
|
||||
{
|
||||
commandText = commandStr;
|
||||
db2Conn = con;
|
||||
AllocateStatement("Constructor 3");
|
||||
}
|
||||
public DB2ClientCommand (string commandStr, DB2ClientConnection con, DB2ClientTransaction trans)
|
||||
{
|
||||
commandText = commandStr;
|
||||
db2Conn = con;
|
||||
db2Trans = trans;
|
||||
AllocateStatement("Constructor 4");
|
||||
}
|
||||
///DB2 Specific constructors
|
||||
///
|
||||
public DB2ClientCommand (IntPtr hwndSt)
|
||||
{
|
||||
hwndStmt = hwndSt;
|
||||
}
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
#region CommandText property
|
||||
///
|
||||
///The query
|
||||
///
|
||||
public string CommandText
|
||||
{
|
||||
get
|
||||
{
|
||||
return commandText;
|
||||
}
|
||||
set
|
||||
{
|
||||
commandText = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region CommandTimeout property
|
||||
///
|
||||
/// The Timeout property states how long we wait for results to return
|
||||
///
|
||||
public int CommandTimeout
|
||||
{
|
||||
get
|
||||
{
|
||||
return commandTimeout;
|
||||
}
|
||||
set
|
||||
{
|
||||
commandTimeout = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region CommandType property
|
||||
///
|
||||
/// I believe this one is left as text all of the time for DB2, but I have to check that...
|
||||
///
|
||||
public CommandType CommandType
|
||||
{
|
||||
get
|
||||
{
|
||||
return CommandType.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
///Do nothing
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Connection property
|
||||
///
|
||||
/// The connection we'll be executing on.
|
||||
///
|
||||
public IDbConnection Connection
|
||||
{
|
||||
get
|
||||
{
|
||||
return db2Conn;
|
||||
}
|
||||
set
|
||||
{
|
||||
db2Conn = (DB2ClientConnection)value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Parameters property
|
||||
///
|
||||
/// Parameter list, Not yet implemented
|
||||
///
|
||||
public IDataParameterCollection Parameters
|
||||
{
|
||||
get
|
||||
{
|
||||
throw new DB2ClientException("TBD");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Transaction property
|
||||
///
|
||||
/// The transaction this command is associated with
|
||||
///
|
||||
public IDbTransaction Transaction
|
||||
{
|
||||
get
|
||||
{
|
||||
return db2Trans;
|
||||
}
|
||||
set
|
||||
{
|
||||
db2Trans = (DB2ClientTransaction)value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region UpdatedRowSource property
|
||||
///
|
||||
/// Need to see how this works with DB2...
|
||||
///
|
||||
public UpdateRowSource UpdatedRowSource
|
||||
{
|
||||
get
|
||||
{
|
||||
throw new DB2ClientException ("TBD");
|
||||
}
|
||||
set
|
||||
{
|
||||
throw new DB2ClientException ("TBD");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Statement Handle
|
||||
///
|
||||
/// returns the DB2Client statement handle
|
||||
///
|
||||
public IntPtr statementHandle
|
||||
{
|
||||
get
|
||||
{
|
||||
return hwndStmt;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region AllocateStatement function
|
||||
///
|
||||
/// Allocate a statement handle, internal. Pass in the name of the caller for exception info.
|
||||
/// I think I'll make the handle a property and add a constructor with the handle argument so that
|
||||
/// statements can be executed on the same handle if need be, though you could accomplish the same by
|
||||
/// just keeping the command object open.
|
||||
///
|
||||
internal void AllocateStatement(string location)
|
||||
{
|
||||
short sqlRet;
|
||||
sqlRet = DB2ClientPrototypes.SQLAllocHandle(DB2ClientConstants.SQL_HANDLE_STMT, db2Conn.DBHandle, ref hwndStmt);
|
||||
if (sqlRet == DB2ClientConstants.SQL_ERROR)
|
||||
throw new DB2ClientException(DB2ClientConstants.SQL_HANDLE_DBC, db2Conn.DBHandle, location +": Unable to allocate statement handle.");
|
||||
}
|
||||
#endregion
|
||||
#region Cancel
|
||||
/// <summary>
|
||||
/// Attempt to cancel an executing command
|
||||
/// </summary>
|
||||
public void Cancel()
|
||||
{
|
||||
DB2ClientPrototypes.SQLCancel(hwndStmt);
|
||||
}
|
||||
#endregion
|
||||
#region CreateParameter
|
||||
///
|
||||
///Returns a parameter
|
||||
///
|
||||
public IDbDataParameter CreateParameter()
|
||||
{
|
||||
//Will wait until I get deeper into the DB2/.Net interface. I'm not sure how
|
||||
//.Net and DB2 parameters talk to each other
|
||||
throw new DB2ClientException("Parameters not yet supported in this driver.");
|
||||
}
|
||||
#endregion
|
||||
#region ExecuteNonQuery
|
||||
///
|
||||
/// ExecuteNonQuery Executes an SQL statement without returning a DataSet
|
||||
///
|
||||
public int ExecuteNonQuery()
|
||||
{
|
||||
short sqlRet;
|
||||
if (prepared)
|
||||
sqlRet = DB2ClientPrototypes.SQLExecute(hwndStmt);
|
||||
else
|
||||
sqlRet = DB2ClientPrototypes.SQLExecDirect(hwndStmt, commandText, commandText.Length);
|
||||
|
||||
int numRows = 0;
|
||||
sqlRet = DB2ClientPrototypes.SQLRowCount(hwndStmt, ref numRows); //How many rows affected. numRows will be -1 if we aren't dealing with an Insert, Delete or Update, or if the statement did not execute successfully
|
||||
///At this point, I think we need to save any results, but not return them
|
||||
///For now, we will go execute and return the number of rows affected
|
||||
return numRows;
|
||||
}
|
||||
#endregion
|
||||
#region ExecuteReader calls
|
||||
///
|
||||
///ExecuteReader
|
||||
///
|
||||
public IDataReader ExecuteReader()
|
||||
{
|
||||
|
||||
ExecuteNonQuery();
|
||||
DB2ClientDataReader reader = new DB2ClientDataReader(db2Conn, this);
|
||||
return reader;
|
||||
|
||||
}
|
||||
public IDataReader ExecuteReader(CommandBehavior behavior)
|
||||
{
|
||||
throw new DB2ClientException("TBD");
|
||||
}
|
||||
#endregion
|
||||
#region ExecuteScalar
|
||||
///
|
||||
/// ExecuteScalar
|
||||
///
|
||||
public object ExecuteScalar()
|
||||
{
|
||||
throw new DB2ClientException("TBD");
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Prepare
|
||||
///
|
||||
/// Prepare
|
||||
///
|
||||
public void Prepare()
|
||||
{
|
||||
throw new DB2ClientException("TBD");
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,229 @@
|
||||
#region Licence
|
||||
/// DB2DriverCS - A DB2 driver for .Net
|
||||
///
|
||||
/// Authors:
|
||||
/// Christopher Bockner
|
||||
///
|
||||
/// Copyright 2003 By Christopher Bockner
|
||||
///
|
||||
/// Released under the terms of the MIT/X11 Licence
|
||||
/// Please refer to the Licence.txt file that should be distributed with this package
|
||||
/// This software requires that DB2 client software be installed correctly on the machine
|
||||
/// (or instance) on which the driver is running.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.Data;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace DB2ClientCS
|
||||
{
|
||||
/// <summary> /// This class is IDbConnection compliant. Refer to MSDN documentation for reference.
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
public class DB2ClientConnection : IDbConnection
|
||||
{
|
||||
private string connectionString = null;
|
||||
private StringBuilder outConnectStr;
|
||||
private string dbName = null;
|
||||
private int connectionTimeout;
|
||||
|
||||
private IntPtr dbHandle = IntPtr.Zero;
|
||||
private bool disposed = false;
|
||||
public DB2ClientConnection()
|
||||
{
|
||||
//
|
||||
// TODO: Add constructor logic here
|
||||
//
|
||||
}
|
||||
public DB2ClientConnection(string conString)
|
||||
{
|
||||
SetConnectionString(conString);
|
||||
}
|
||||
#region ConnectionString property
|
||||
///
|
||||
///Accessor for the connectionString property
|
||||
public string ConnectionString
|
||||
{
|
||||
get
|
||||
{
|
||||
return connectionString;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetConnectionString(value);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region ConnectionTimeout property
|
||||
public int ConnectionTimeout
|
||||
{
|
||||
get
|
||||
{
|
||||
return connectionTimeout;
|
||||
}
|
||||
set
|
||||
{
|
||||
connectionTimeout = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Database property
|
||||
public string Database
|
||||
{
|
||||
get
|
||||
{
|
||||
return dbName;
|
||||
}
|
||||
set
|
||||
{
|
||||
dbName = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region State property
|
||||
/// <summary>
|
||||
/// The Connection State property, open or closed.
|
||||
/// NOTE: IBM's docs on SqlFreeHandle do not state what is done when a handle is freed
|
||||
/// i.e. if the handle is set to SQL_NULL_HANDLE.
|
||||
/// </summary>
|
||||
|
||||
unsafe public ConnectionState State
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((long)dbHandle.ToPointer() == DB2ClientConstants.SQL_NULL_HANDLE)
|
||||
return ConnectionState.Closed;
|
||||
else
|
||||
return ConnectionState.Open;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region DBHandle
|
||||
///
|
||||
/// Handle Returns an IntPtr of the dbm handle
|
||||
///
|
||||
public IntPtr DBHandle
|
||||
{
|
||||
get
|
||||
{
|
||||
return dbHandle;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region BeginTransaction Method
|
||||
/// <summary>
|
||||
/// Opens a transaction against the database at the default isolation level, which will be
|
||||
/// that which the packages were bound at, unless overriden in the connection string, and if nothing was specified at that point
|
||||
/// then I believe the default level is Cursor Stability (don't quote me on that, I haven't
|
||||
/// found the appropriate reference yet), ODBC equivalent is SQL_TXN_READ_COMMITTED
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IDbTransaction BeginTransaction()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
#endregion
|
||||
#region BeginTransaction (IsolationLevel) Method
|
||||
/// <summary>
|
||||
/// BeginTransaction again overloadded to let us set the transaction level for the statement
|
||||
/// </summary>
|
||||
/// <param name="isolationL"></param>
|
||||
/// <returns></returns>
|
||||
public IDbTransaction BeginTransaction(IsolationLevel isolationL)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
#endregion
|
||||
#region ChangeDatabase
|
||||
unsafe public void ChangeDatabase(string newDBName)
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
#region Close
|
||||
///Close, per MSDN documentation
|
||||
///
|
||||
unsafe public void Close()
|
||||
{
|
||||
DB2ClientPrototypes.SQLDisconnect(dbHandle);
|
||||
dbHandle = new IntPtr(DB2ClientConstants.SQL_NULL_HANDLE);
|
||||
}
|
||||
#endregion
|
||||
#region CreateCommand
|
||||
/// <summary>
|
||||
/// CreateCommand per MSDN
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IDbCommand CreateCommand()
|
||||
{
|
||||
CheckState();
|
||||
return new DB2ClientCommand();
|
||||
}
|
||||
#endregion
|
||||
#region Open
|
||||
/// <summary>
|
||||
/// Open, per MSDN
|
||||
/// </summary>
|
||||
unsafe public void Open()
|
||||
{
|
||||
DB2ClientUtils util = new DB2ClientUtils();
|
||||
outConnectStr = new StringBuilder(60); //Set some initial size, we know we're gettig a chunk of data back
|
||||
IntPtr penvHandle=IntPtr.Zero;
|
||||
IntPtr numOutCharsReturned = IntPtr.Zero;
|
||||
short sqlRet=0;
|
||||
|
||||
try
|
||||
{
|
||||
sqlRet = DB2ClientPrototypes.SQLAllocHandle(DB2ClientConstants.SQL_HANDLE_ENV, IntPtr.Zero, ref penvHandle);
|
||||
util.DB2CheckReturn(sqlRet, 0, IntPtr.Zero, "Unable to allocate Environment handle in DB2ClientConnection.");
|
||||
|
||||
sqlRet = DB2ClientPrototypes.SQLAllocHandle(DB2ClientConstants.SQL_HANDLE_DBC, penvHandle, ref dbHandle);
|
||||
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_ENV, penvHandle, "Unable to allocate database handle in DB2ClientConnection.");
|
||||
|
||||
sqlRet = DB2ClientPrototypes.SQLDriverConnect(dbHandle, 0, connectionString,
|
||||
connectionString.Length, outConnectStr, 100, numOutCharsReturned,
|
||||
DB2ClientConstants.SQL_DRIVER_COMPLETE);
|
||||
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_ENV, penvHandle, "Unable to connect to the database.");
|
||||
|
||||
}
|
||||
catch (DB2ClientException DB2E)
|
||||
{
|
||||
Console.WriteLine(DB2E.Message);
|
||||
Dispose();
|
||||
throw DB2E;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Dispose
|
||||
/// <summary>
|
||||
/// Dispose
|
||||
/// </summary>
|
||||
unsafe public void Dispose()
|
||||
{
|
||||
if(!disposed)
|
||||
{
|
||||
this.Close();
|
||||
disposed = true;
|
||||
} else
|
||||
return;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private void CheckState()
|
||||
{
|
||||
if (ConnectionState.Closed == State)
|
||||
throw new DB2ClientException ("Connection is currently closed.");
|
||||
}
|
||||
|
||||
void SetConnectionString (string connectionString)
|
||||
{
|
||||
this.connectionString = connectionString;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
#region Licence
|
||||
/// DB2DriverCS - A DB2 driver for .Net
|
||||
/// Copyright 2003 By Christopher Bockner
|
||||
/// Released under the terms of the MIT/X11 Licence
|
||||
/// Please refer to the Licence.txt file that should be distributed with this package
|
||||
/// This software requires that DB2 client software be installed correctly on the machine
|
||||
/// (or instance) on which the driver is running.
|
||||
#endregion
|
||||
using System;
|
||||
|
||||
namespace DB2ClientCS
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for DB2Constants.
|
||||
/// </summary>
|
||||
public class DB2ClientConstants
|
||||
{
|
||||
public DB2ClientConstants()
|
||||
{
|
||||
//
|
||||
// TODO: Add constructor logic here
|
||||
//
|
||||
|
||||
}
|
||||
public const short SQL_HANDLE_ENV = 1;
|
||||
public const short SQL_HANDLE_DBC = 2;
|
||||
public const short SQL_HANDLE_STMT = 3;
|
||||
public const short SQL_HANDLE_DESC = 4;
|
||||
|
||||
/* RETCODE values */
|
||||
public const long SQL_SUCCESS = 0;
|
||||
public const long SQL_SUCCESS_WITH_INFO = 1;
|
||||
public const long SQL_NEED_DATA = 99;
|
||||
public const long SQL_NO_DATA = 100;
|
||||
public const long SQL_STILL_EXECUTING = 2;
|
||||
public const long SQL_ERROR = -1;
|
||||
public const long SQL_INVALID_HANDLE = -2;
|
||||
public const long SQL_NULL_HANDLE = 0L;
|
||||
public const short SQL_COMMIT = 0;
|
||||
public const short SQL_ROLLBACK = 1;
|
||||
public const short SQL_NO_DATA_FOUND = 100;
|
||||
|
||||
/* Isolation levels */
|
||||
public const long SQL_TXN_READ_UNCOMMITTED = 0x00000001L;
|
||||
public const long SQL_TXN_READ_COMMITTED = 0x00000002L;
|
||||
public const long SQL_TXN_REPEATABLE_READ = 0x00000004L;
|
||||
public const long SQL_TXN_SERIALIZABLE_READ = 0x00000008L;
|
||||
public const long SQL_TXN_NOCOMMIT = 0x00000020L;
|
||||
|
||||
/* Connect options */
|
||||
public const long SQL_TXN_ISOLATION = 108;
|
||||
public const long SQL_AUTOCOMMIT = 102;
|
||||
|
||||
public const long SQL_AUTOCOMMIT_OFF = 0L;
|
||||
public const long SQL_AUTOCOMMIT_ON = 1L;
|
||||
|
||||
/* Data Types */
|
||||
public const int SQL_CHAR = 1;
|
||||
public const int SQL_DECIMAL = 3;
|
||||
public const int SQL_VARCHAR = 12;
|
||||
public const int SQL_TYPE_DATE = 91;
|
||||
public const int SQL_TYPE_TIME = 92;
|
||||
public const int SQL_TYPE_TIMESTAMP = 93;
|
||||
|
||||
public const int SQL_C_CHAR = SQL_CHAR;
|
||||
|
||||
/* SQLDriverConnect Options */
|
||||
public const int SQL_DRIVER_NOPROMPT = 0;
|
||||
public const int SQL_DRIVER_COMPLETE = 1;
|
||||
public const int SQL_DRIVER_PROMPT = 2;
|
||||
public const int SQL_DRIVER_COMPLETE_REQUIRED = 3;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,458 @@
|
||||
#region Licence
|
||||
/// DB2DriverCS - A DB2 driver for .Net
|
||||
/// Copyright 2003 By Christopher Bockner
|
||||
/// Released under the terms of the MIT/X11 Licence
|
||||
/// Please refer to the Licence.txt file that should be distributed with this package
|
||||
/// This software requires that DB2 client software be installed correctly on the machine
|
||||
/// (or instance) on which the driver is running.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
|
||||
namespace DB2ClientCS
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for DB2ClientDataReader.
|
||||
/// DB2ClientDataReader.
|
||||
/// </summary>
|
||||
unsafe public class DB2ClientDataReader : IDataReader
|
||||
{
|
||||
internal DataTable rs; //Our result set is a datatable
|
||||
internal DB2ClientConnection db2Conn; //The connection we're working with
|
||||
internal IntPtr hwndStmt; //The statement handle returning the results
|
||||
private int row=-1; //Row pointer
|
||||
private int numCols=0;
|
||||
|
||||
#region Constructors and destructors
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="con"></Connection object to DB2>
|
||||
/// <param name="com"></Command object>
|
||||
internal DB2ClientDataReader(DB2ClientConnection con, DB2ClientCommand com)
|
||||
{
|
||||
db2Conn = con;
|
||||
hwndStmt = com.statementHandle; //We have access to the results through the statement handle
|
||||
|
||||
short sqlRet;
|
||||
StringBuilder colName = new StringBuilder(18);
|
||||
short colNameMaxLength=18;
|
||||
IntPtr colNameLength=IntPtr.Zero;
|
||||
IntPtr sqlDataType=IntPtr.Zero;
|
||||
IntPtr colSize=IntPtr.Zero;
|
||||
IntPtr scale=IntPtr.Zero;
|
||||
IntPtr nullable=IntPtr.Zero;
|
||||
DB2ClientUtils util = new DB2ClientUtils();
|
||||
rs = new DataTable();
|
||||
|
||||
sqlRet = DB2ClientPrototypes.SQLNumResultCols(hwndStmt, ref numCols);
|
||||
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLNumResultCols");
|
||||
IntPtr[] dbVals = new IntPtr[numCols];
|
||||
IntPtr[] sqlLen_or_IndPtr = new IntPtr[numCols];
|
||||
for (ushort i=1; i<=numCols; i++)
|
||||
{
|
||||
sqlRet = DB2ClientPrototypes.SQLDescribeCol(hwndStmt, i, colName, colNameMaxLength, colNameLength, ref sqlDataType, ref colSize, ref scale, ref nullable);
|
||||
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLDescribeCol");
|
||||
///At this point I have the data type information as well, but for now I will insert the data as
|
||||
///Ansi strings and see how it goes. Maybe we can speed things up later...
|
||||
///
|
||||
rs.Columns.Add(colName.ToString());
|
||||
|
||||
sqlLen_or_IndPtr[i-1] = new IntPtr();
|
||||
dbVals[i-1] = Marshal.AllocHGlobal(colSize.ToInt32()+1);
|
||||
|
||||
try
|
||||
{
|
||||
switch (sqlDataType.ToInt32())
|
||||
{
|
||||
case DB2ClientConstants.SQL_DECIMAL: //These types are treated as SQL_C_CHAR for binding purposes
|
||||
case DB2ClientConstants.SQL_TYPE_DATE:
|
||||
case DB2ClientConstants.SQL_TYPE_TIME:
|
||||
case DB2ClientConstants.SQL_TYPE_TIMESTAMP:
|
||||
case DB2ClientConstants.SQL_VARCHAR:
|
||||
sqlRet = DB2ClientPrototypes.SQLBindCol(hwndStmt, i, DB2ClientConstants.SQL_C_CHAR, dbVals[i-1],(short)colSize.ToInt32()+1, ref sqlLen_or_IndPtr[i-1]);
|
||||
break;
|
||||
default:
|
||||
sqlRet = DB2ClientPrototypes.SQLBindCol(hwndStmt, i, (short)sqlDataType.ToInt32(), dbVals[i-1],(short)colSize.ToInt32()+1, ref sqlLen_or_IndPtr[i-1]);
|
||||
break;
|
||||
}
|
||||
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLBindCol");
|
||||
}
|
||||
catch(DB2ClientException e)
|
||||
{
|
||||
System.Console.Write(e.Message);
|
||||
}
|
||||
isClosed = false;
|
||||
}
|
||||
sqlRet = DB2ClientPrototypes.SQLFetch(hwndStmt);
|
||||
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLFetch 1");
|
||||
while(sqlRet != DB2ClientConstants.SQL_NO_DATA_FOUND)
|
||||
{
|
||||
DataRow newRow = rs.NewRow();
|
||||
for (short y=1;y<=numCols;y++)
|
||||
{
|
||||
newRow[y-1] = Marshal.PtrToStringAnsi(dbVals[y-1]);
|
||||
util.DB2CheckReturn(sqlRet, DB2ClientConstants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLFetch 2");
|
||||
}
|
||||
rs.Rows.Add(newRow);
|
||||
|
||||
sqlRet = DB2ClientPrototypes.SQLFetch(hwndStmt);
|
||||
}
|
||||
for (int n=0;n<numCols;n++)
|
||||
Marshal.FreeHGlobal(dbVals[n]);
|
||||
}
|
||||
public void Dispose()
|
||||
{
|
||||
Close();
|
||||
}
|
||||
#endregion
|
||||
#region Properties
|
||||
#region Depth property
|
||||
///
|
||||
///Depth of nesting for the current row, need to figure out what this translates into
|
||||
///with DB2.
|
||||
///
|
||||
private int depth = 0;
|
||||
public int Depth
|
||||
{
|
||||
get
|
||||
{
|
||||
return depth;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region IsClosed property
|
||||
/// <summary>
|
||||
/// True if the reader is closed.
|
||||
/// </summary>
|
||||
private bool isClosed = true;
|
||||
public bool IsClosed
|
||||
{
|
||||
get
|
||||
{
|
||||
return isClosed;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region RecordsAffected property
|
||||
///
|
||||
/// Number of records affected by this operation. Will be zero until we close the
|
||||
/// reader
|
||||
///
|
||||
private int recordsAffected = 0;
|
||||
public int RecordsAffected
|
||||
{
|
||||
get
|
||||
{
|
||||
return recordsAffected;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
#region Methods
|
||||
#region Close method
|
||||
///
|
||||
///
|
||||
public void Close()
|
||||
{
|
||||
if (rs != null)
|
||||
{
|
||||
recordsAffected = rs.Rows.Count;
|
||||
rs.Dispose();
|
||||
rs = null;
|
||||
isClosed=true;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region GetSchemaTable
|
||||
///
|
||||
/// We'll return an empty table for now...ughh this one will be tedious to write
|
||||
///
|
||||
public DataTable GetSchemaTable()
|
||||
{
|
||||
throw new DB2ClientException ("TBD");
|
||||
}
|
||||
#endregion
|
||||
#region NextResult
|
||||
///
|
||||
/// Ummm is this related to SQLBulkOperations stuff..?
|
||||
///
|
||||
public bool NextResult()
|
||||
{
|
||||
throw new DB2ClientException("To be done");
|
||||
|
||||
//Deferring the meat of this until the batch stuff is implemented
|
||||
}
|
||||
#endregion
|
||||
#region Read
|
||||
///
|
||||
/// Apparently, this function does nothing other than tell you if you can move to the
|
||||
/// next row in the resultset. I have to move the fetching stuff elswhere...
|
||||
///
|
||||
public bool Read()
|
||||
{
|
||||
if (isClosed) return false;
|
||||
row++;
|
||||
//do something with the fetched data now...
|
||||
if(row < rs.Rows.Count)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region IDataRecord Interface
|
||||
///Code for the IDataRecord interface
|
||||
///
|
||||
#region FieldCount
|
||||
///
|
||||
///
|
||||
private int fieldCount = -1;
|
||||
public int FieldCount
|
||||
{
|
||||
get
|
||||
{
|
||||
if (IsClosed)
|
||||
fieldCount = 0;
|
||||
else
|
||||
fieldCount = rs.Columns.Count;
|
||||
return fieldCount;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Item accessors
|
||||
public object this[string name]
|
||||
{
|
||||
get
|
||||
{
|
||||
return rs.Rows[row][name];
|
||||
}
|
||||
}
|
||||
public object this[int col]
|
||||
{
|
||||
get
|
||||
{
|
||||
return rs.Rows[row][col];
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region GetBoolean method
|
||||
///
|
||||
///Use the Convert class for all of these returns
|
||||
///
|
||||
public bool GetBoolean(int col)
|
||||
{
|
||||
return Convert.ToBoolean(this[col]);
|
||||
}
|
||||
#endregion
|
||||
#region GetByte
|
||||
///
|
||||
///GetByte
|
||||
///
|
||||
public byte GetByte(int col)
|
||||
{
|
||||
return Convert.ToByte(this[col]);
|
||||
}
|
||||
#endregion
|
||||
#region GetBytes
|
||||
///
|
||||
/// GetBytes, return a stream of bytes
|
||||
///
|
||||
public long GetBytes(int col, long fieldOffset, byte[] buffer, int bufferOffset, int length)
|
||||
{
|
||||
//Hmm... How shall we deal with this one?
|
||||
return 0;
|
||||
}
|
||||
#endregion
|
||||
#region GetChar
|
||||
///
|
||||
///GetChar, return column as a char
|
||||
///
|
||||
public char GetChar(int col)
|
||||
{
|
||||
return Convert.ToChar(this[col]);
|
||||
}
|
||||
#endregion
|
||||
#region GetChars
|
||||
///
|
||||
///GetChars, returns char array
|
||||
///
|
||||
public long GetChars(int col, long fieldOffset, char[] buffer, int bufferOffset, int length)
|
||||
{
|
||||
//Again, not sure how I'll deal with this just yet
|
||||
return 0;
|
||||
}
|
||||
#endregion
|
||||
#region GetData
|
||||
///
|
||||
/// GetData method
|
||||
///
|
||||
public IDataReader GetData(int col)
|
||||
{
|
||||
//Have to research this one, not quite sure what the docs mean
|
||||
//DB2 does have some structured data types, is that what this is for?
|
||||
throw new DB2ClientException("Not yet supported.");
|
||||
}
|
||||
#endregion
|
||||
#region GetDataTypeName
|
||||
///
|
||||
///GetDataTypeName return the type of data
|
||||
///
|
||||
public string GetDataTypeName(int col)
|
||||
{
|
||||
//I could check the meta data as a starting point for this one, but until I implement
|
||||
//returning the result sets, I'm not exactly sure what info I'll have, so this function
|
||||
//waits until then...
|
||||
throw new DB2ClientException("Not yet implemented");
|
||||
}
|
||||
#endregion
|
||||
#region GetDateTime
|
||||
///
|
||||
/// GetDateTime method
|
||||
///
|
||||
public DateTime GetDateTime(int col)
|
||||
{
|
||||
return Convert.ToDateTime(this[col]);
|
||||
}
|
||||
#endregion
|
||||
#region GetDecimal
|
||||
///
|
||||
///GetDecimal method
|
||||
///
|
||||
public decimal GetDecimal(int col)
|
||||
{
|
||||
return Convert.ToDecimal(this[col]);
|
||||
}
|
||||
#endregion
|
||||
#region GetDouble
|
||||
///
|
||||
/// GetDouble
|
||||
///
|
||||
public double GetDouble(int col)
|
||||
{
|
||||
return Convert.ToDouble(this[col]);
|
||||
}
|
||||
#endregion
|
||||
#region GetFieldType
|
||||
///
|
||||
/// Type GetFieldType
|
||||
///
|
||||
public Type GetFieldType(int col)
|
||||
{
|
||||
//Again need more research here
|
||||
return typeof(int);
|
||||
}
|
||||
#endregion
|
||||
#region GetFloat
|
||||
///
|
||||
/// GetFloat
|
||||
///
|
||||
public float GetFloat(int col)
|
||||
{
|
||||
return (float) Convert.ToDouble(this[col].ToString(),new CultureInfo("en-US").NumberFormat);
|
||||
}
|
||||
#endregion
|
||||
#region GetGuid
|
||||
///
|
||||
/// GetGuid
|
||||
///
|
||||
public Guid GetGuid(int col)
|
||||
{
|
||||
// a Guid is a 128 bit unique value. Could be like a GENERATE UNIQUE in DB2
|
||||
// as usual, need more research
|
||||
throw new DB2ClientException("TBD");
|
||||
}
|
||||
#endregion
|
||||
#region The GetInt?? series
|
||||
///
|
||||
///GetInt16
|
||||
///
|
||||
public short GetInt16(int col)
|
||||
{
|
||||
return Convert.ToInt16(this[col]);
|
||||
}
|
||||
///
|
||||
///GetInt32
|
||||
///
|
||||
public int GetInt32(int col)
|
||||
{
|
||||
return Convert.ToInt32(this[col]);
|
||||
}
|
||||
///
|
||||
///GetInt64
|
||||
///
|
||||
public long GetInt64(int col)
|
||||
{
|
||||
return Convert.ToInt64(this[col]);
|
||||
}
|
||||
#endregion
|
||||
#region GetName
|
||||
///
|
||||
///GetName, returns the name of the field
|
||||
///
|
||||
public string GetName(int col)
|
||||
{
|
||||
return (rs.Columns[col].ColumnName);
|
||||
}
|
||||
#endregion
|
||||
#region GetOrdinal
|
||||
///
|
||||
/// GetOrdinal, return the index of the named column
|
||||
///
|
||||
public int GetOrdinal(string name)
|
||||
{
|
||||
return rs.Columns[name].Ordinal;
|
||||
}
|
||||
#endregion
|
||||
#region GetString
|
||||
///
|
||||
/// GetString returns a string
|
||||
///
|
||||
public string GetString(int col)
|
||||
{
|
||||
return Convert.ToString(this[col]);
|
||||
}
|
||||
#endregion
|
||||
#region GetValue
|
||||
///
|
||||
/// GetVCalue, returns an object
|
||||
///
|
||||
public object GetValue(int col)
|
||||
{
|
||||
return this[col];
|
||||
}
|
||||
#endregion
|
||||
#region GetValues
|
||||
///
|
||||
/// GetValues returns all columns in the row through the argument, and the number of columns in the return value
|
||||
///
|
||||
public int GetValues(object[] values)
|
||||
{
|
||||
int numCols = FieldCount;
|
||||
if (values.Length<numCols)
|
||||
throw new DB2ClientException("GetValues argument too small for number of columns in row.");
|
||||
for (int i = 0; i<=numCols; i++)
|
||||
values[i] = this[i];
|
||||
return numCols;
|
||||
}
|
||||
#endregion
|
||||
#region IsDBNull
|
||||
///
|
||||
/// IsDBNull Is the column null
|
||||
///
|
||||
public bool IsDBNull(int col)
|
||||
{
|
||||
//Proper implementation once I get the SQLDescribe/SQLBind/SQLFetch stuff in place
|
||||
return false;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion ///For IDataRecord
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
#region Licence
|
||||
/// DB2DriverCS - A DB2 driver for .Net
|
||||
/// Copyright 2003 By Christopher Bockner
|
||||
/// Released under the terms of the MIT/X11 Licence
|
||||
/// Please refer to the Licence.txt file that should be distributed with this package
|
||||
/// This software requires that DB2 client software be installed correctly on the machine
|
||||
/// (or instance) on which the driver is running.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace DB2ClientCS
|
||||
{
|
||||
/// <summary>
|
||||
/// Exception class. We will throw our own exception in the case of SQL_ERROR returns
|
||||
/// and call SQLGetDiagRec to get the error info.
|
||||
/// </summary>
|
||||
public class DB2ClientException : Exception
|
||||
{
|
||||
internal string message;
|
||||
public DB2ClientException(string Message)
|
||||
{
|
||||
this.message = Message;
|
||||
}
|
||||
unsafe public DB2ClientException(short sqlHandleType, IntPtr sqlHandle, string Message)
|
||||
{
|
||||
StringBuilder sqlState = new StringBuilder(50);
|
||||
StringBuilder errorMessage = new StringBuilder(1025);
|
||||
|
||||
int sqlReturn;
|
||||
short recNum=1;
|
||||
short bufLength = 1025;
|
||||
|
||||
IntPtr textLengthPtr = IntPtr.Zero;
|
||||
IntPtr nativeErrorPtr = IntPtr.Zero;
|
||||
|
||||
sqlReturn = DB2ClientPrototypes.SQLGetDiagRec(sqlHandleType, sqlHandle, recNum, sqlState, ref nativeErrorPtr, errorMessage, bufLength, ref textLengthPtr);
|
||||
this.message = Message + "\n" + sqlState.ToString() + " " + errorMessage.ToString()+"\n";
|
||||
//See if there are more errors to retrieve and get them.
|
||||
while (sqlReturn != DB2ClientConstants.SQL_NO_DATA && sqlReturn > 0)
|
||||
{
|
||||
recNum++;
|
||||
sqlReturn = DB2ClientPrototypes.SQLGetDiagRec(sqlHandleType, sqlHandle, recNum, sqlState, ref nativeErrorPtr, errorMessage, bufLength, ref textLengthPtr);
|
||||
this.message += "\n" + sqlState.ToString() + " " + errorMessage.ToString()+"\n";
|
||||
}
|
||||
|
||||
}
|
||||
public override string Message
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
#region Licence
|
||||
/// DB2DriverCS - A DB2 driver for .Net
|
||||
/// Copyright 2003 By Christopher Bockner
|
||||
/// Released under the terms of the MIT/X11 Licence
|
||||
/// Please refer to the Licence.txt file that should be distributed with this package
|
||||
/// This software requires that DB2 client software be installed correctly on the machine
|
||||
/// (or instance) on which the driver is running.
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace DB2ClientCS
|
||||
{
|
||||
/// <summary>
|
||||
/// DB2CLIPrototypes class is a wrapper for the db2cli.lib, IBM's Call Level Interface to DB2
|
||||
/// </summary>
|
||||
unsafe internal class DB2ClientPrototypes
|
||||
{
|
||||
[DllImport("db2cli.dll", EntryPoint = "SQLAllocHandle")]
|
||||
unsafe public static extern short SQLAllocHandle(short handleType, IntPtr inputHandle, ref IntPtr outputHandle);
|
||||
[DllImport("db2cli.Dll", EntryPoint = "SQLConnect")]
|
||||
unsafe public static extern short SQLConnect(IntPtr sqlHdbc, string serverName, short serverNameLength, string userName, short userNameLength, string authentication, short authenticationLength);
|
||||
[DllImport("db2cli.Dll", CharSet = CharSet.Auto, EntryPoint = "SQLDisconnect")]
|
||||
unsafe public static extern short SQLDisconnect(IntPtr sqlHdbc);
|
||||
[DllImport("db2cli.dll", EntryPoint = "SQLGetDiagRec")]
|
||||
unsafe public static extern short SQLGetDiagRec( short handleType, IntPtr handle, short recNum, [Out] StringBuilder sqlState, ref IntPtr nativeErrorPtr, [Out] StringBuilder errorMessage, short bufferLength, ref IntPtr shortTextLengthPtr);
|
||||
[DllImport("db2cli.Dll", EntryPoint = "SQLSetConnectAttr")]
|
||||
unsafe public static extern short SQLSetConnectAttr(IntPtr sqlHdbc, long sqlAttr, IntPtr sqlValuePtr, long sqlStrLength);
|
||||
[DllImport("db2cli.Dll", EntryPoint = "SQLEndTran")]
|
||||
unsafe public static extern short SQLEndTran (short handleType, IntPtr handle, short fType);
|
||||
[DllImport("db2cli.Dll", EntryPoint = "SQLCancel")]
|
||||
unsafe public static extern short SQLCancel(IntPtr handle);
|
||||
[DllImport("db2cli.dll", EntryPoint = "SQLNumResultCols")]
|
||||
unsafe public static extern short SQLNumResultCols(IntPtr handle, ref int numCols);
|
||||
[DllImport("db2cli.Dll", EntryPoint = "SQLFetch")]
|
||||
unsafe public static extern short SQLFetch(IntPtr handle);
|
||||
[DllImport("db2cli.dll", EntryPoint = "SQLRowCount")]
|
||||
unsafe public static extern short SQLRowCount(IntPtr stmtHandle, ref int numRows);
|
||||
[DllImport("db2cli.dll", EntryPoint = "SQLExecute")]
|
||||
unsafe public static extern short SQLExecute(IntPtr handle);
|
||||
[DllImport ("db2cli.dll", EntryPoint = "SQLExecDirect")]
|
||||
unsafe public static extern short SQLExecDirect(IntPtr stmtHandle, string stmt, int length);
|
||||
[DllImport("db2cli.Dll", EntryPoint = "SQLDescribeCol")]
|
||||
unsafe public static extern short SQLDescribeCol(IntPtr stmtHandle, ushort colNum, [Out] StringBuilder colName, short colNameMaxLength, IntPtr colNameLength, ref IntPtr dataType, ref IntPtr colSizePtr, ref IntPtr scalePtr, ref IntPtr nullablePtr );
|
||||
[DllImport("db2cli.dll", EntryPoint = "SQLBindCol")]
|
||||
unsafe public static extern short SQLBindCol(IntPtr stmtHandle, ushort colNum, int dataType,[In][Out] IntPtr dataBufferPtr, int dataBufferLength, ref IntPtr StrLen_or_IndPtr);
|
||||
[DllImport("db2cli.dll", EntryPoint = "SQLDriverConnect")]
|
||||
unsafe public static extern short SQLDriverConnect(IntPtr hdbc, int centered, [In] string inConnectStr, [In] int inStrLength, [Out] StringBuilder outConnectStr, [Out] int outStrCapacity, [Out] IntPtr outStrLengthReturned, [In] int completion);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
#region Licence
|
||||
/// DB2DriverCS - A DB2 driver for .Net
|
||||
/// Copyright 2003 By Christopher Bockner
|
||||
/// Released under the terms of the MIT/X11 Licence
|
||||
/// Please refer to the Licence.txt file that should be distributed with this package
|
||||
/// This software requires that DB2 client software be installed correctly on the machine
|
||||
/// (or instance) on which the driver is running.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Data;
|
||||
|
||||
namespace DB2ClientCS
|
||||
{
|
||||
/// <summary>
|
||||
/// DB2ClientTransaction. DB2 requires nothing specific to be done to open a transaction, so we set the
|
||||
/// isolation level, make sure AUTOCOMMIT is off. DB2 Also allows you to set transaction isolation
|
||||
/// at the statement level, but I haven't worked that in here yet.
|
||||
/// </summary>
|
||||
public class DB2ClientTransaction : IDbTransaction
|
||||
{
|
||||
IsolationLevel IL = IsolationLevel.Unspecified;
|
||||
DB2ClientConnection db2Conn;
|
||||
public DB2ClientTransaction(DB2ClientConnection con, IsolationLevel isoL)
|
||||
{
|
||||
IL = isoL;
|
||||
long db2IsoL = DB2ClientConstants.SQL_TXN_READ_COMMITTED;
|
||||
db2Conn = con;
|
||||
short sqlRet;
|
||||
|
||||
switch (isoL)
|
||||
{
|
||||
case System.Data.IsolationLevel.Chaos:
|
||||
break;
|
||||
case System.Data.IsolationLevel.ReadCommitted: //SQL_TXN_READ_COMMITTED
|
||||
db2IsoL = DB2ClientConstants.SQL_TXN_READ_COMMITTED;
|
||||
break;
|
||||
case System.Data.IsolationLevel.ReadUncommitted: //SQL_TXN_READ_UNCOMMITTED
|
||||
db2IsoL = DB2ClientConstants.SQL_TXN_READ_UNCOMMITTED;
|
||||
break;
|
||||
case System.Data.IsolationLevel.RepeatableRead: //SQL_TXN_REPEATABLE_READ
|
||||
db2IsoL = DB2ClientConstants.SQL_TXN_REPEATABLE_READ;
|
||||
break;
|
||||
case System.Data.IsolationLevel.Serializable: //SQL_TXN_SERIALIZABLE_READ
|
||||
db2IsoL = DB2ClientConstants.SQL_TXN_SERIALIZABLE_READ;
|
||||
break;
|
||||
}
|
||||
|
||||
IntPtr iso = new IntPtr(db2IsoL);
|
||||
IntPtr attr = new IntPtr(DB2ClientConstants.SQL_AUTOCOMMIT_OFF);
|
||||
sqlRet = DB2ClientPrototypes.SQLSetConnectAttr(db2Conn.DBHandle, DB2ClientConstants.SQL_AUTOCOMMIT, attr, 0);
|
||||
sqlRet = DB2ClientPrototypes.SQLSetConnectAttr(db2Conn.DBHandle, DB2ClientConstants.SQL_TXN_ISOLATION, iso, 0);
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// DB2ClientConnection associated with this transaction
|
||||
/// </summary>
|
||||
public IDbConnection Connection
|
||||
{
|
||||
get
|
||||
{
|
||||
return db2Conn;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// IsolationLevel property
|
||||
/// </summary>
|
||||
///
|
||||
public IsolationLevel IsolationLevel
|
||||
{
|
||||
get
|
||||
{
|
||||
return IL;
|
||||
}
|
||||
}
|
||||
|
||||
public void Commit() {
|
||||
DB2ClientPrototypes.SQLEndTran(DB2ClientConstants.SQL_HANDLE_DBC, db2Conn.DBHandle, DB2ClientConstants.SQL_COMMIT);
|
||||
}
|
||||
public void Rollback()
|
||||
{
|
||||
DB2ClientPrototypes.SQLEndTran(DB2ClientConstants.SQL_HANDLE_DBC, db2Conn.DBHandle, DB2ClientConstants.SQL_ROLLBACK);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Dispose method.
|
||||
/// </summary>
|
||||
private bool Done = false;
|
||||
public void Dispose()
|
||||
{
|
||||
if (Done)
|
||||
return;
|
||||
Rollback();
|
||||
IL = IsolationLevel.Unspecified;
|
||||
db2Conn = null;
|
||||
Done = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
#region Licence
|
||||
/// DB2DriverCS - A DB2 driver for .Net
|
||||
/// Copyright 2003 By Christopher Bockner
|
||||
/// Released under the terms of the MIT/X11 Licence
|
||||
/// Please refer to the Licence.txt file that should be distributed with this package
|
||||
/// This software requires that DB2 client software be installed correctly on the machine
|
||||
/// (or instance) on which the driver is running.
|
||||
#endregion
|
||||
using System;
|
||||
|
||||
namespace DB2ClientCS
|
||||
{
|
||||
/// <summary>
|
||||
/// Utility functions class, i.e. functions like SQL return code error checking
|
||||
/// </summary>
|
||||
public class DB2ClientUtils
|
||||
{
|
||||
public DB2ClientUtils()
|
||||
{
|
||||
//
|
||||
// TODO: Add constructor logic here
|
||||
//
|
||||
}
|
||||
#region DB2CheckReturn
|
||||
/// <summary>
|
||||
/// Check the return value from a Call Level Interface call and respond to errors (by tossing exception)
|
||||
/// </summary>
|
||||
/// <param name="sqlRet"><The return value>
|
||||
/// <param name="handleType"><Type of handle, 0 means we don't care, so don't try to check the handle for any messages placed there by DB2>
|
||||
/// <param name="handle"><The handle in question, don't care if handletype is 0>
|
||||
/// <param name="message"><Message we may throw>
|
||||
/// <returns></returns>
|
||||
public int DB2CheckReturn(short sqlRet, short handleType, IntPtr handle, string message)
|
||||
{
|
||||
switch ((long)sqlRet)
|
||||
{
|
||||
case DB2ClientConstants.SQL_ERROR:
|
||||
if (handleType != 0)
|
||||
throw new DB2ClientException(handleType, handle, message);
|
||||
else
|
||||
throw new DB2ClientException(message);
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,58 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
//
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
//
|
||||
[assembly: AssemblyTitle("")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
//
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified, the assembly is not signed.
|
||||
// (*) KeyName refers to a key that has been installed in the Crypto Service
|
||||
// Provider (CSP) on your machine. KeyFile refers to a file which contains
|
||||
// a key.
|
||||
// (*) If the KeyFile and the KeyName values are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP, that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the KeyFile is installed into the CSP and used.
|
||||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
|
||||
// When specifying the KeyFile, the location of the KeyFile should be
|
||||
// relative to the project output directory which is
|
||||
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
|
||||
// located in the project directory, you would specify the AssemblyKeyFile
|
||||
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
[assembly: AssemblyDelaySign(false)]
|
||||
[assembly: AssemblyKeyFile("")]
|
||||
[assembly: AssemblyKeyName("")]
|
||||
@@ -0,0 +1,6 @@
|
||||
2003-01-18 Daniel Morgan <[email protected]>
|
||||
|
||||
* TestDB2Conn.cs: use a different connection string
|
||||
which uses the format
|
||||
"DSN=database;UID=userid;PWD=password"
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
#region Licence
|
||||
/// DB2DriverCS Test Code - A DB2 driver test for .Net
|
||||
/// Copyright 2003 By Christopher Bockner
|
||||
/// Released under the terms of the MIT/X11 Licence
|
||||
/// Please refer to the Licence.txt file that should be distributed with this package
|
||||
/// This software requires that DB2 client software be installed correctly on the machine
|
||||
/// (or instance) on which the driver is running.
|
||||
///
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Data;
|
||||
using DB2ClientCS;
|
||||
using System.Text;
|
||||
|
||||
namespace TestDB2Conn {
|
||||
/// <summary>
|
||||
/// Code to test DB2DriverCS.
|
||||
/// </summary>
|
||||
class TestDB2Client
|
||||
{
|
||||
static void DoTest(string database, string userid, string password)
|
||||
{
|
||||
IDbCommand command = null;
|
||||
string connectionString = String.Format(
|
||||
"DSN={0};UID={1};PWD={2}",
|
||||
database, userid, password);
|
||||
try {
|
||||
Console.WriteLine("Create DB2 client Connection...");
|
||||
DB2ClientConnection DB2Conn = new DB2ClientConnection();
|
||||
|
||||
Console.WriteLine("connection string: " + connectionString);
|
||||
|
||||
Console.WriteLine("Set connection string...");
|
||||
DB2Conn.ConnectionString = connectionString;
|
||||
|
||||
Console.WriteLine("Open a connection...");
|
||||
DB2Conn.Open();
|
||||
|
||||
string createTestTableSQL =
|
||||
"CREATE TABLE mono_db2_test1 ( " +
|
||||
" testid varchar(2), " +
|
||||
" testdesc varchar(16) " +
|
||||
")";
|
||||
Console.WriteLine("SQL:\n" + createTestTableSQL);
|
||||
|
||||
Console.WriteLine("Create a command using sql and connection...");
|
||||
command = new DB2ClientCommand(createTestTableSQL,DB2Conn);
|
||||
Console.WriteLine("Execute Non Query...");
|
||||
command.ExecuteNonQuery();
|
||||
|
||||
string selectSQL = "select * from employee";
|
||||
Console.WriteLine("SQL:\n" + selectSQL);
|
||||
Console.WriteLine("create command and set connection and connection string...");
|
||||
command = new DB2ClientCommand(selectSQL,DB2Conn);
|
||||
Console.WriteLine("ExecuteReader...");
|
||||
IDataReader dr = command.ExecuteReader();
|
||||
Console.WriteLine("Read row...");
|
||||
dr.Read();
|
||||
Console.WriteLine("Read row...");
|
||||
dr.Read();
|
||||
Console.WriteLine("GetString...");
|
||||
string dt = dr.GetString(1);
|
||||
Console.WriteLine("dt: " + dt);
|
||||
string s = dr.GetString(5);
|
||||
Console.WriteLine("s: " + s);
|
||||
DateTime t = dr.GetDateTime(6);
|
||||
Console.WriteLine("t: " + t);
|
||||
|
||||
Console.WriteLine("Close connection...");
|
||||
DB2Conn.Close();
|
||||
}
|
||||
catch(DB2ClientException e) {
|
||||
System.Console.Write(e.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main(string[] args)
|
||||
{
|
||||
if(args.Length != 3)
|
||||
Console.WriteLine("Usage: mono TestDB2Conn.exe database userid password");
|
||||
else {
|
||||
Console.WriteLine("Test Begin.");
|
||||
// database, userid, password
|
||||
DoTest(args[0], args[1], args[2]);
|
||||
Console.WriteLine("Test End.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
Copyright (c) 2003 Christopher Bockner
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
||||
software and associated documentation files (the "Software"), to deal in the Software
|
||||
without restriction, including without limitation the rights to use, copy, modify, merge,
|
||||
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
|
||||
to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or
|
||||
substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
||||
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
Mono.Data.Db2Client/AssemblyInfo.cs
|
||||
Mono.Data.Db2Client/DB2ClientCommand.cs
|
||||
Mono.Data.Db2Client/DB2ClientConnection.cs
|
||||
Mono.Data.Db2Client/DB2ClientConstants.cs
|
||||
Mono.Data.Db2Client/DB2ClientDataReader.cs
|
||||
Mono.Data.Db2Client/DB2ClientException.cs
|
||||
Mono.Data.Db2Client/DB2ClientPrototypes.cs
|
||||
Mono.Data.Db2Client/DB2ClientTransaction.cs
|
||||
Mono.Data.Db2Client/DB2ClientUtils.cs
|
||||
@@ -0,0 +1,12 @@
|
||||
topdir = ../..
|
||||
|
||||
LIBRARY = $(topdir)/class/lib/Mono.Data.DB2Client.dll
|
||||
|
||||
LIB_LIST = list
|
||||
LIB_FLAGS = --unsafe -r corlib -r System -r System.Xml -r System.Data
|
||||
|
||||
SOURCES_INCLUDE=*.cs
|
||||
|
||||
export MONO_PATH_PREFIX = $(topdir)/class/lib:
|
||||
|
||||
include $(topdir)/class/library.make
|
||||
@@ -1,3 +1,14 @@
|
||||
2002-12-22 Tim Coleman <[email protected]>
|
||||
* Mono.Data.Tds.Protocol/TdsComm.cs:
|
||||
Change GetString to NOT explicitly add a NUL
|
||||
to the end of the string since Encoder.GetString ()
|
||||
will do that.
|
||||
|
||||
2002-12-14 Daniel Morgan <[email protected]>
|
||||
|
||||
* Mono.Data.Tds.Protocol/Tds70.cs: single quotes in SQL string
|
||||
need to be escaped as two single quotes
|
||||
|
||||
2002-12-01 Tim Coleman <[email protected]>
|
||||
* list:
|
||||
Remove more unnecessary files.
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
2002-12-10 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* Tds.cs:
|
||||
(Disconnect): close the stream and set connected to false.
|
||||
(NextResult): check if after DoneProc we have a ColumnMetadata + Row,
|
||||
which holds the values for the output parameters and read them.
|
||||
(LoadRow): add the values to outputParameters if DoneProc.
|
||||
When executing a stored procedure, we execute the procedure and then
|
||||
select the parameter values.
|
||||
|
||||
* Tds70.cs:
|
||||
(BuildParameters): check Parameters.
|
||||
|
||||
* TdsComm.cs: added Close () to close the stream.
|
||||
|
||||
* TdsConnectionParameters.cs: initialize all the string to be empty.
|
||||
|
||||
2002-11-04 Tim Coleman ([email protected])
|
||||
* TdsBigDecimal.cs:
|
||||
New class added to handle (potentially) large
|
||||
|
||||
@@ -184,8 +184,8 @@ namespace Mono.Data.Tds.Protocol {
|
||||
comm.StartPacket (TdsPacketType.Logoff);
|
||||
comm.Append ((byte) 0);
|
||||
comm.SendPacket ();
|
||||
|
||||
SkipToEnd ();
|
||||
comm.Close ();
|
||||
connected = false;
|
||||
}
|
||||
|
||||
public void Execute (string sql)
|
||||
@@ -237,14 +237,26 @@ namespace Mono.Data.Tds.Protocol {
|
||||
TdsPacketSubType subType;
|
||||
|
||||
bool done = false;
|
||||
bool outputParams = false;
|
||||
|
||||
while (!done) {
|
||||
subType = ProcessSubPacket ();
|
||||
if (outputParams) {
|
||||
moreResults = false;
|
||||
break;
|
||||
}
|
||||
|
||||
switch (subType) {
|
||||
case TdsPacketSubType.ColumnInfo:
|
||||
case TdsPacketSubType.ColumnMetadata:
|
||||
case TdsPacketSubType.RowFormat:
|
||||
done = (Comm.Peek () != (byte) TdsPacketSubType.TableName);
|
||||
byte peek = Comm.Peek ();
|
||||
done = (peek != (byte) TdsPacketSubType.TableName);
|
||||
if (done && doneProc && peek == (byte) TdsPacketSubType.Row) {
|
||||
outputParams = true;
|
||||
done = false;
|
||||
}
|
||||
|
||||
break;
|
||||
case TdsPacketSubType.TableName:
|
||||
done = true;
|
||||
@@ -763,6 +775,9 @@ namespace Mono.Data.Tds.Protocol {
|
||||
foreach (TdsDataColumn column in columns) {
|
||||
object o = GetColumnValue ((TdsColumnType) column["ColumnType"], false, i);
|
||||
currentRow.Add (o);
|
||||
if (doneProc)
|
||||
outputParameters.Add (o);
|
||||
|
||||
if (o is TdsBigDecimal && currentRow.BigDecimalIndex < 0)
|
||||
currentRow.BigDecimalIndex = i;
|
||||
i += 1;
|
||||
|
||||
@@ -37,14 +37,18 @@ namespace Mono.Data.Tds.Protocol {
|
||||
|
||||
private string BuildExec (string sql)
|
||||
{
|
||||
string esql = sql.Replace ("'", "''"); // escape single quote
|
||||
if (Parameters != null && Parameters.Count > 0)
|
||||
return BuildProcedureCall (String.Format ("sp_executesql N'{0}', N'{1}', ", sql, BuildPreparedParameters ()));
|
||||
return BuildProcedureCall (String.Format ("sp_executesql N'{0}', N'{1}', ", esql, BuildPreparedParameters ()));
|
||||
else
|
||||
return BuildProcedureCall (String.Format ("sp_executesql N'{0}'", sql));
|
||||
return BuildProcedureCall (String.Format ("sp_executesql N'{0}'", esql));
|
||||
}
|
||||
|
||||
private string BuildParameters ()
|
||||
{
|
||||
if (Parameters == null || Parameters.Count == 0)
|
||||
return String.Empty;
|
||||
|
||||
StringBuilder result = new StringBuilder ();
|
||||
foreach (TdsMetaParameter p in Parameters) {
|
||||
if (result.Length > 0)
|
||||
|
||||
@@ -215,6 +215,11 @@ namespace Mono.Data.Tds.Protocol {
|
||||
Append (BitConverter.GetBytes (l));
|
||||
}
|
||||
|
||||
public void Close ()
|
||||
{
|
||||
stream.Close ();
|
||||
}
|
||||
|
||||
private void ConnectCallback (IAsyncResult ar)
|
||||
{
|
||||
Socket s = (Socket) ar.AsyncState;
|
||||
@@ -291,7 +296,6 @@ namespace Mono.Data.Tds.Protocol {
|
||||
else {
|
||||
byte[] result = new byte[len + 1];
|
||||
Array.Copy (GetBytes (len, false), result, len);
|
||||
result[len] = (byte) 0;
|
||||
return (encoder.GetString (result));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,17 +7,18 @@
|
||||
// Copyright (C) 2002 Tim Coleman
|
||||
//
|
||||
|
||||
using System;
|
||||
namespace Mono.Data.Tds.Protocol {
|
||||
public class TdsConnectionParameters
|
||||
{
|
||||
public string ApplicationName = "Mono";
|
||||
public string Database;
|
||||
public string Charset;
|
||||
public string Database = String.Empty;
|
||||
public string Charset = String.Empty;
|
||||
public string Hostname = "localhost";
|
||||
public string Language;
|
||||
public string Language = String.Empty;
|
||||
public string LibraryName = "Mono";
|
||||
public string Password;
|
||||
public string Password = String.Empty;
|
||||
public string ProgName = "Mono";
|
||||
public string User;
|
||||
public string User = String.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
2002-12-11 Jeroen Janssen <[email protected]>
|
||||
|
||||
* add reference to corlib.dll in order to eliminate [MonoTODO] build error
|
||||
|
||||
2002-12-10 Jeroen Janssen <[email protected]>
|
||||
|
||||
* added Mono.Directory.LDAP.build file
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<!-- NAnt build file for Mono.Directory.LDAP.dll -->
|
||||
|
||||
<project name="Mono.Directory.LDAP" default="build">
|
||||
<property name="debug" value="false"/>
|
||||
|
||||
<target name="build">
|
||||
<csc target="library" output="../lib/Mono.Directory.LDAP.dll" debug="${debug}">
|
||||
<arg value="/nowarn:1595"/>
|
||||
<arg value="/nowarn:0067"/>
|
||||
<arg value="/nowarn:0109"/>
|
||||
<arg value="/nowarn:0169"/>
|
||||
<arg value="/nowarn:0649"/>
|
||||
<arg value="/unsafe"/>
|
||||
<arg value="/noconfig"/>
|
||||
<arg value="/lib:../lib/"/>
|
||||
<arg value="/r:corlib.dll"/>
|
||||
|
||||
<sources>
|
||||
<includes name="**/*.cs"/>
|
||||
<excludes name="Test/**"/>
|
||||
</sources>
|
||||
</csc>
|
||||
</target>
|
||||
<target name="test" depends="build">
|
||||
<nant basedir="Test" target="test"/>
|
||||
</target>
|
||||
<target name="clean">
|
||||
<delete file="../lib/Mono.Directory.LDAP.dll" failonerror="false"/>
|
||||
</target>
|
||||
</project>
|
||||
@@ -1,3 +1,7 @@
|
||||
2003-01-20 Duncan Mak <[email protected]>
|
||||
|
||||
* list.unix: Remove the extra reference to ArgumentProcessorAttribute.cs
|
||||
|
||||
2002-09-03 Rafael Teixeira <[email protected]>
|
||||
|
||||
* added AboutAttribute.cs, AuthorAttribute.cs, OptionAttribute.cs,
|
||||
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<!-- NAnt build file for Mono.GetOptions.dll -->
|
||||
|
||||
<project name="Mono.GetOptions" default="build">
|
||||
<property name="debug" value="false"/>
|
||||
|
||||
<target name="build">
|
||||
<csc target="library" output="../lib/Mono.GetOptions.dll" debug="${debug}">
|
||||
<arg value="/nowarn:1595"/>
|
||||
<arg value="/nowarn:0067"/>
|
||||
<arg value="/nowarn:0109"/>
|
||||
<arg value="/nowarn:0169"/>
|
||||
<arg value="/nowarn:0649"/>
|
||||
<arg value="/unsafe"/>
|
||||
<arg value="/noconfig"/>
|
||||
<arg value="/r:System.dll"/>
|
||||
<arg value="/r:System.Xml.dll"/>
|
||||
<arg value="/r:System.Data.dll"/>
|
||||
<sources>
|
||||
<includes name="**/*.cs"/>
|
||||
<excludes name="GetOptTest/**"/>
|
||||
|
||||
</sources>
|
||||
<references>
|
||||
<includes name="../lib/corlib.dll"/>
|
||||
<includes name="../lib/System.dll"/>
|
||||
<includes name="../lib/System.Xml.dll"/>
|
||||
<includes name="../lib/System.Data.dll"/>
|
||||
</references>
|
||||
</csc>
|
||||
</target>
|
||||
<target name="test" depends="build">
|
||||
<nant basedir="Test" target="test"/>
|
||||
</target>
|
||||
<target name="clean">
|
||||
<delete file="../lib/Mono.GetOptions.dll" failonerror="false"/>
|
||||
</target>
|
||||
</project>
|
||||
@@ -1,3 +1,8 @@
|
||||
2002-12-10 Jeroen Janssen <[email protected]>
|
||||
|
||||
* updated .build file(s) to correctly contain required buildfile
|
||||
attribute for nant
|
||||
|
||||
2002-12-01 Alejandro Sánchez Acosta <[email protected]>
|
||||
|
||||
* list.unix: Changed
|
||||
|
||||
@@ -1,3 +1,49 @@
|
||||
2003-01-17 Daniel Morgan <[email protected]>
|
||||
|
||||
* System.Data.SqlClient.SqlConnection.cs: add connection
|
||||
parameter UID which is the same thing as User ID
|
||||
|
||||
2003-01-13 Ville Palo <[email protected]>
|
||||
|
||||
* System.Xml/XmlDataDocument.cs: lots of bugfixes and more implemented
|
||||
methods.
|
||||
|
||||
2003-01-08 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* list: added System.Data/DataTablePropertyDescriptor.cs
|
||||
|
||||
2002-12-27 Ville Palo <[email protected]>
|
||||
|
||||
* list: Added System.Data/XmlDataLoader.cs
|
||||
|
||||
2002-12-16 Ville Palo <[email protected]>
|
||||
|
||||
* System.Xml/XmlDataDocument.cs: Now rollback works. It means all
|
||||
types of transactions works, i guess ;)
|
||||
|
||||
2002-12-14 Ville Palo <[email protected]>
|
||||
|
||||
* System.Xml/XmlDataDocument.cs: Adding row via XmlDataDocument to
|
||||
DataSet's datatable is now possible.
|
||||
|
||||
2002-12-11 Ville Palo <[email protected]>
|
||||
|
||||
* System.Xml/XmlDataDocument.cs: Implemented GetRowFromElement() and
|
||||
GetElementFromRowElement () -methods. Somefixed and little clean up.
|
||||
|
||||
2002-12-10 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* System.Data.SqlClient/SqlCommand.cs:
|
||||
(CloseReader): don't get the output parameters here.
|
||||
(GetOutputParameters): don't skip the stream. The parameters will be
|
||||
there.
|
||||
|
||||
* System.Data.SqlClient/SqlConnection.cs: don't try to execute
|
||||
'sp_reset_connection'.
|
||||
|
||||
* System.Data.SqlClient/SqlDataReader.cs: get the output parameters
|
||||
after the end of the results.
|
||||
|
||||
2002-12-04 Ville Palo <[email protected]>
|
||||
|
||||
* System.Xml/XmlDataDocument.cs: Now this works in both ways,
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2003-01-08 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* DbDataRecord.cs: return DbNull.Value in GetValue () if value is null.
|
||||
|
||||
2002-10-31 Daniel Morgan <[email protected]>
|
||||
|
||||
* SchemaInfo.cs: added missing properties to fix mcs build
|
||||
|
||||
@@ -154,7 +154,10 @@ namespace System.Data.Common {
|
||||
|
||||
public object GetValue (int i)
|
||||
{
|
||||
return values [i];
|
||||
object value = values [i];
|
||||
if (value == null)
|
||||
value = DBNull.Value;
|
||||
return value;
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
|
||||
@@ -202,7 +202,6 @@ namespace System.Data.SqlClient {
|
||||
|
||||
internal void CloseDataReader (bool moreResults)
|
||||
{
|
||||
GetOutputParameters ();
|
||||
Connection.DataReader = null;
|
||||
|
||||
if ((behavior & CommandBehavior.CloseConnection) != 0)
|
||||
@@ -345,11 +344,9 @@ namespace System.Data.SqlClient {
|
||||
return xmlReader;
|
||||
}
|
||||
|
||||
private void GetOutputParameters ()
|
||||
internal void GetOutputParameters ()
|
||||
{
|
||||
Connection.Tds.SkipToEnd ();
|
||||
|
||||
IList list = Connection.Tds.ColumnValues;
|
||||
IList list = Connection.Tds.OutputParameters;
|
||||
|
||||
if (list != null && list.Count > 0) {
|
||||
int index = 0;
|
||||
|
||||
@@ -351,8 +351,13 @@ namespace System.Data.SqlClient {
|
||||
|
||||
if (!tds.IsConnected)
|
||||
tds.Connect (parms);
|
||||
/* Not sure ebout removing these 2 lines.
|
||||
* The command that gets to the sql server is just
|
||||
* 'sp_reset_connection' and it fails.
|
||||
* Either remove them definitely or fix it
|
||||
else if (connectionReset)
|
||||
tds.ExecProc ("sp_reset_connection");
|
||||
*/
|
||||
|
||||
ChangeState (ConnectionState.Open);
|
||||
}
|
||||
@@ -513,6 +518,7 @@ namespace System.Data.SqlClient {
|
||||
case "POOLING" :
|
||||
pooling = !(value.ToUpper ().Equals ("FALSE") || value.ToUpper ().Equals ("NO"));
|
||||
break;
|
||||
case "UID" :
|
||||
case "USER ID" :
|
||||
parms.User = value;
|
||||
break;
|
||||
|
||||
@@ -732,12 +732,13 @@ namespace System.Data.SqlClient {
|
||||
{
|
||||
if ((command.CommandBehavior & CommandBehavior.SingleResult) != 0 && resultsRead > 0)
|
||||
return false;
|
||||
if (command.Tds.DoneProc)
|
||||
return false;
|
||||
|
||||
schemaTable.Rows.Clear ();
|
||||
|
||||
moreResults = command.Tds.NextResult ();
|
||||
if (!moreResults)
|
||||
command.GetOutputParameters ();
|
||||
|
||||
GetSchemaTable ();
|
||||
|
||||
rowsRead = 0;
|
||||
|
||||
@@ -1,3 +1,142 @@
|
||||
2003-01-18 Ville Palo <[email protected]>
|
||||
|
||||
* DataTableCollection.cs: Now names new DataTable if it doesn't
|
||||
already have a name.
|
||||
|
||||
2003-01-17 Ville Palo <[email protected]>
|
||||
|
||||
* XmlSchemaMapper.cs: Improvments.
|
||||
* XmlConstaints.cs: Added more constants.
|
||||
* DataSet.cs: Improvments of reading and writing xml
|
||||
* DataColumn.cs: Added default values of properties.
|
||||
|
||||
2003-01-14 Ville Palo <[email protected]>
|
||||
|
||||
* XmlSchemaMapper.cs: Some improvments
|
||||
|
||||
2003-01-13 Ville Palo <[email protected]>
|
||||
|
||||
* DataRowCollection.cs: Added IndexOutOfRangeException
|
||||
* DataTableCollection.cs: Added OnCollectionChanging and
|
||||
OnCollectionChanged events.
|
||||
* DataSet.cs: Many fixes. Implemented Clone () and Copy () -methods
|
||||
* DataTable.cs: Implemented Copy () and Clone () methods.
|
||||
* XmlDataLoader.cs: some fixes.
|
||||
* XmlSchemaMapper.cs: comments.
|
||||
|
||||
2003-01-08 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* DataColumnPropertyDescriptor.cs: store columnIndex in the .ctor.
|
||||
|
||||
2003-01-08 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* DataColumnPropertyDescriptor.cs: fixed typo.
|
||||
* DataViewManagerListItemTypeDescriptor.cs: added new internal property
|
||||
to get the DataViewManager and removed TablePD class.
|
||||
* DataTablePropertyDescriptor.cs: TablePD class is now this one as
|
||||
suggested by danmorg.
|
||||
|
||||
2003-01-06 Ville Palo <[email protected]>
|
||||
|
||||
* XmlDataLoader.cs: Moved diffgram stuff to new internal class
|
||||
XmlDiffLoader.
|
||||
* XmlDiffLoader.cs: new class for diffgrams. Added handling of
|
||||
diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
|
||||
|
||||
2003-01-06 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* DataView.cs: made dataViewManager internal.
|
||||
* DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
|
||||
properties of the object, but the values of the columns present in a
|
||||
row.
|
||||
|
||||
* DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
|
||||
which returns a PropertyDescriptorCollection. Created a new class
|
||||
derived from PropertyDescriptor that treats Table as an object whose
|
||||
properties are DataRowView.
|
||||
|
||||
2003-01-04 Ville Palo <[email protected]>
|
||||
|
||||
* XmlSchemaMapper.cs: Added handling for Constraints, Attributes.
|
||||
|
||||
2003-01-04 Ville Palo <[email protected]>
|
||||
|
||||
* DataColumn.cs: ExtendedProperties is by default !null-
|
||||
|
||||
2003-01-04 Ville Palo <[email protected]>
|
||||
|
||||
* DataColumnCollection.cs: Add (DataColumn Column) -method didn't
|
||||
set column's ordinal.
|
||||
|
||||
2003-01-02 Ville Palo <[email protected]>
|
||||
|
||||
* DataSet.cs:
|
||||
* XmlDataLoader.cs: XmlReader closing fixes.
|
||||
* XmlSchemaReader.cs: Added support for ref=
|
||||
|
||||
2003-01-01 Ville Palo <[email protected]>
|
||||
|
||||
* DataSet.cs:
|
||||
- Added XmlReader and XmlWriter Closing.
|
||||
- Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
|
||||
* XmlSchemaMapper.cs
|
||||
- Much better way IMHO to map xmlschema than the old one in
|
||||
DataSet.cs. Its, more flexible, cleaner, ...
|
||||
|
||||
2002-12-29 Ville Palo <[email protected]>
|
||||
|
||||
* XmlDataLoader.cs: Reading diffgrams.
|
||||
|
||||
2002-12-29 Ville Palo <[email protected]>
|
||||
|
||||
* DataRow.cs: Little fix to indexer and DataColumnCang* trigger fixes.
|
||||
* DataTable.cs: Added ChanginDataColumn () for triggering
|
||||
DataColumnChanging event
|
||||
|
||||
2002-12-28 Ville Palo <[email protected]>
|
||||
|
||||
* DataSet.cs: Indentations to WriteXmlSchema () and one little fix
|
||||
|
||||
2002-12-28 Ville Palo <[email protected]>
|
||||
|
||||
* DataSet.cs: Indentations to WriteXml ()
|
||||
|
||||
2002-12-27 Ville Palo <[email protected]>
|
||||
|
||||
* DataSet.cs:
|
||||
* XmlDataLoader.cs: Moved ReadXml -stuff from DataSet.cs to new
|
||||
class XmlDataLoader.cs
|
||||
|
||||
2002-12-19 Ville Palo <[email protected]>
|
||||
|
||||
* DataSet.cs Implemented ReadXml with XmlReadMode.ReadSchema
|
||||
|
||||
2002-12-18 Ville Palo <[email protected]>
|
||||
|
||||
* DataSet.cs: Started to implement ReadXml-methods.
|
||||
|
||||
2002-12-17 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* DataSet.cs: implemented DefaultViewManager and GetList.
|
||||
|
||||
* DataViewManager.cs: a bit of work on IList and ITypedList needed by
|
||||
DataList in System.Web.
|
||||
|
||||
* DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
|
||||
DataViewManager.
|
||||
|
||||
2002-12-16 Ville Palo <[email protected]>
|
||||
|
||||
* DataRow.cs
|
||||
* DataTable.cs: Fixed NullException (rollback -event)
|
||||
* DataSet.cs: WriteXml -method does not anymore write <?xml... row.
|
||||
|
||||
2002-12-15 Ville Palo <[email protected]>
|
||||
|
||||
* DataRow.cs:
|
||||
* DataRowCollection.cs: Moved event triggering from DataRow to
|
||||
DataRowCollection.
|
||||
|
||||
2002-12-09 Ville Palo <[email protected]>
|
||||
|
||||
* DataSet.cs: Little fix to WriteTable () -method
|
||||
|
||||
@@ -50,14 +50,14 @@ namespace System.Data {
|
||||
private string _caption = null;
|
||||
private MappingType _columnMapping = MappingType.Element;
|
||||
private string _columnName = null;
|
||||
private Type _dataType = null;
|
||||
private object _defaultValue = null;
|
||||
private string expression = null;
|
||||
private PropertyCollection _extendedProperties = null;
|
||||
private Type _dataType = Type.GetType ("System.String");
|
||||
private object _defaultValue = DBNull.Value;
|
||||
private string expression = "";
|
||||
private PropertyCollection _extendedProperties = new PropertyCollection ();
|
||||
private int maxLength = -1; //-1 represents no length limit
|
||||
private string nameSpace = null;
|
||||
private string nameSpace = "";
|
||||
private int _ordinal = -1; //-1 represents not part of a collection
|
||||
private string prefix = null;
|
||||
private string prefix = "";
|
||||
private bool readOnly = false;
|
||||
private DataTable _table = null;
|
||||
private bool unique = false;
|
||||
|
||||
@@ -117,7 +117,8 @@ namespace System.Data {
|
||||
CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Add, this);
|
||||
|
||||
column.SetTable( parentTable);
|
||||
base.List.Add(column);
|
||||
int ordinal = base.List.Add(column);
|
||||
column.SetOrdinal (ordinal);
|
||||
|
||||
//add constraints if neccesary
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace System.Data
|
||||
public DataColumnPropertyDescriptor (string name, int columnIndex, Attribute [] attrs)
|
||||
: base (name, attrs)
|
||||
{
|
||||
this.columnIndex = columnIndex;
|
||||
}
|
||||
|
||||
public void SetReadOnly (bool value)
|
||||
@@ -72,7 +73,7 @@ namespace System.Data
|
||||
DataRowView drv = (DataRowView) component;
|
||||
return drv[base.Name];
|
||||
}
|
||||
else if(component == typeof(DbDataRecord) && component is DbDataRecord) {
|
||||
else if(componentType == typeof(DbDataRecord) && component is DbDataRecord) {
|
||||
DbDataRecord dr = (DbDataRecord) component;
|
||||
return dr[columnIndex];
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// Rodrigo Moya <[email protected]>
|
||||
// Daniel Morgan <[email protected]>
|
||||
// Tim Coleman <[email protected]>
|
||||
// Ville Palo <[email protected]>
|
||||
//
|
||||
// (C) Ximian, Inc 2002
|
||||
// (C) Daniel Morgan 2002
|
||||
@@ -13,6 +14,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Globalization;
|
||||
|
||||
namespace System.Data {
|
||||
/// <summary>
|
||||
@@ -97,10 +99,10 @@ namespace System.Data {
|
||||
|
||||
[MonoTODO]
|
||||
set {
|
||||
value = (value == null) ? DBNull.Value : value;
|
||||
value = (value == null) ? DBNull.Value : value;
|
||||
bool objIsDBNull = value.Equals(DBNull.Value);
|
||||
if (column == null)
|
||||
throw new ArgumentNullException ();
|
||||
throw new ArgumentNullException (Locale.GetText ("'column' argument cannot be null."));
|
||||
int columnIndex = _table.Columns.IndexOf (column);
|
||||
if (columnIndex == -1)
|
||||
throw new ArgumentException ();
|
||||
@@ -114,6 +116,8 @@ namespace System.Data {
|
||||
if (rowState == DataRowState.Deleted)
|
||||
throw new DeletedRowInaccessibleException ();
|
||||
|
||||
_table.ChangingDataColumn (this, column, value);
|
||||
|
||||
//MS Implementation doesn't seem to create the proposed or original
|
||||
//set of values when a datarow has just been created or added to the
|
||||
//DataTable and AcceptChanges() has not been called yet.
|
||||
@@ -128,20 +132,23 @@ namespace System.Data {
|
||||
else {
|
||||
BeginEdit (); // implicitly called
|
||||
|
||||
rowState = DataRowState.Modified;
|
||||
|
||||
if(objIsDBNull)
|
||||
proposed[columnIndex] = DBNull.Value;
|
||||
else
|
||||
proposed[columnIndex] = value;
|
||||
|
||||
_table.ChangedDataColumn (this, column, value);
|
||||
|
||||
rowState = DataRowState.Modified;
|
||||
current [columnIndex] = proposed[columnIndex];
|
||||
proposed[columnIndex] = null;
|
||||
}
|
||||
|
||||
//Don't know if this is the rigth thing to do,
|
||||
//but it fixes my test. I believe the MS docs only say this
|
||||
//method is implicitly called when calling AcceptChanges()
|
||||
|
||||
// EndEdit (); // is this the right thing to do?
|
||||
//EndEdit (); // is this the right thing to do?
|
||||
|
||||
}
|
||||
}
|
||||
@@ -191,14 +198,14 @@ namespace System.Data {
|
||||
return column.DefaultValue;
|
||||
|
||||
if (!HasVersion (version))
|
||||
throw new VersionNotFoundException ();
|
||||
throw new VersionNotFoundException (Locale.GetText ("There is no " + version.ToString () + " data to access."));
|
||||
|
||||
switch (version)
|
||||
{
|
||||
case DataRowVersion.Proposed:
|
||||
return proposed[columnIndex];
|
||||
case DataRowVersion.Current:
|
||||
return current[columnIndex];
|
||||
return current[columnIndex];
|
||||
case DataRowVersion.Original:
|
||||
return original[columnIndex];
|
||||
default:
|
||||
@@ -397,7 +404,6 @@ namespace System.Data {
|
||||
switch (rowState) {
|
||||
case DataRowState.Added:
|
||||
Table.Rows.Remove (this);
|
||||
_table.DeletedDataRow (this, DataRowAction.Delete);
|
||||
break;
|
||||
case DataRowState.Deleted:
|
||||
throw new DeletedRowInaccessibleException ();
|
||||
@@ -656,6 +662,8 @@ namespace System.Data {
|
||||
if (original != null)
|
||||
{
|
||||
Array.Copy (original, current, _table.Columns.Count);
|
||||
|
||||
_table.ChangedDataRow (this, DataRowAction.Rollback);
|
||||
CancelEdit ();
|
||||
switch (rowState)
|
||||
{
|
||||
@@ -668,9 +676,17 @@ namespace System.Data {
|
||||
case DataRowState.Deleted:
|
||||
rowState = DataRowState.Unchanged;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
_table.ChangedDataRow (this, DataRowAction.Rollback);
|
||||
}
|
||||
else {
|
||||
// If rows are just loaded via Xml the original values are null.
|
||||
// So in this case we have to remove all columns.
|
||||
// FIXME: I'm not realy sure, does this break something else, but
|
||||
// if so: FIXME ;)
|
||||
|
||||
if ((rowState & DataRowState.Added) > 0)
|
||||
_table.Rows.Remove (this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,12 @@ namespace System.Data
|
||||
/// </summary>
|
||||
public DataRow this[int index]
|
||||
{
|
||||
get { return (DataRow) list[index]; }
|
||||
get {
|
||||
if (index >= Count)
|
||||
throw new IndexOutOfRangeException ("There is no row at position " + index + ".");
|
||||
|
||||
return (DataRow) list[index];
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -132,14 +137,17 @@ namespace System.Data
|
||||
public void Remove (DataRow row)
|
||||
{
|
||||
list.Remove (row);
|
||||
table.DeletedDataRow (row, DataRowAction.Delete);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes the row at the specified index from the collection.
|
||||
/// </summary>
|
||||
public void RemoveAt (int index)
|
||||
{
|
||||
list.RemoveAt (index);
|
||||
{
|
||||
DataRow row = (DataRow)list [index];
|
||||
list.RemoveAt (index);
|
||||
table.DeletedDataRow (row, DataRowAction.Delete);
|
||||
}
|
||||
|
||||
///<summary>
|
||||
|
||||
Loaded 100 of 951 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user