ورود

View Full Version : سوال: استفاده از کدوم بهتره ado یا DataEnvironment



mostafa_bahar
پنج شنبه 10 تیر 1389, 10:49 صبح
سلام دوستان می خوام بدونم من برا ارتباط و کار با بانک در کل پروژه از DataEnvironment استفاده می کنم کار درسته یا نه اگر این بهتره دلیل و برعکس.....

Dr.Bronx
پنج شنبه 10 تیر 1389, 11:57 صبح
خوب نمیشه دقیقا گفت کدوم بهتره .

از نظر انعطاف پذیری میشه گفت ADO بهتر عمل میکنه
اما از لحاظ راحتی و سادگی کار میشه DE رو انتخاب کرد .
DE یک محیط گرافیکی رو برای نمایش اجزاری جدول و بانک اطلاعاتی به شما نمایش میده . اما ado به این صورت نیست .

ADO or the Data Environment?




Decisions, decisions
Visual Basic (VB) 6.0 includes the new Data Environment, based on ADO, which I have explained in previous issues. Data Environment components such as connections and commands hide ADO and its details from the developer. Also, the Data Environment's graphical nature and tools make it easy to create data applications without having to remember a lot of technical details, such as how to set parameters and cursor options in the underlying ADO code. So, with these new features, should you ever consider using ADO directly?


I started to write a reply but I keep coming up with different ways to tell you how to switch to differing data in the data environment...the shortest story is: each command in a data environment has an associated recordset object which can have a new command text assigned to it and opened. Also the commands can have parameters you could create and use...you could have differing connections open...it's pretty flexible. The data environment is essentially a collection of ADO connections,commands,recordsets that helps you manage them.

موفق باشید ./

mostafa_bahar
یک شنبه 13 تیر 1389, 18:38 عصر
در de دستور refresh وجود نداره برای همین من مجبورم open close انجام بدم این مشکل من در شبکه است

ghasemweb
جمعه 18 تیر 1389, 10:45 صبح
ببخشيد منظورتون از de همون روش rs و db هستش كه از رفرنس كتابخانه اي استفاده ميكنه؟
اگه همين باشه به نظر من از ado بهتر باشه چون من يه پروژه دانشگاهي كه اخيرا باهاش انجام دادم بسيار عالي عمل كرد.

ENG_Torshani
جمعه 18 تیر 1389, 11:31 صبح
DE خودش یک Interface هستش که از ADO استفاده میکنه پس کاملا مشخصه که کدومشون بهتره