Thursday 2 December 2021

June-2019(9) What is data binding? How it is used in VB•Net.

Data binding एक ऐसा Process है जो किसी Specified Sources से Data को Retrieve करता है और फिर उस Data को किसी User Interface Element की किसी Property के साथ Associated कर देता है।


DataBinding is a powerful feature provided by the .NET Framework that enables visual elements (TextBox, Datagrid, etc) in a client to connect to a datasource such as DataSets, DataViews, Arrays, etc. A two-way connection is established such that any changes made to the datasource are reflected immediately in the visual element and vice versa.

Below is a graphical description of the concept of databinding:

डेटा बाइंडिंग .NET फ्रेमवर्क द्वारा प्रदान की गई एक शक्तिशाली विशेषता है जो कि क्लाइंट एप्‍लीकेशन में Visual Elements (टेक्स्टबॉक्स, डेटाग्रिड इत्यादि) को Data Source/डेटा स्रोत (जैसे डेटासेट, डेटा व्यू, एरेज़ इत्यादि) से कनेक्ट करने में सक्षम बनाता है। यह दो-तरफा कनेक्शन इस तरह स्थापित किया जाता है कि डेटा स्रोत में किये गए कोई भी परिवर्तन तुरंत Visual Elements में दिखाई देते हैं और इसका उल्टा भी संभव है।



नीचे डेटाबाइंडिंग की अवधारणा का चित्रमय विवरण दिया गया है: 

 

 

We can tackle any data access scenario easily with ADO.NET and ADO data access. The flexibility of ADO.NET enables data binding to any database, as well as classes, collections, and arrays, and provides true XML representation of data. Correct access to ADO enables simple data access for connected data binding scenarios

हम ADO.NET और ADO की सहायता से डेटा एक्सेस करने की किसी भी समस्‍या से आसानी से निपट सकते हैं। ADO.NET का लचीलापन डेटा को किसी भी Database, Classes1, Collection और arrays(सारणियों) के लिए वाइंडेवल बनाता है, और डेटा का सही XML representation प्रदान करता है। ADO तक सही पहुंच, कनेक्टेड डेटा बाइंडिंग केसेज के लिए भी सरल डेटा एक्सेस को सक्षम बनाता है।


Advantages of DataBinding

1. Databinding in .NET can be used to write data driven applications quickly. dOT NET data binding allows you to write less code with fast execution but still get the work done in the best way.

2. .NET automatically writes a lot of databinding code for you in the background (you can see it in "Windows Generated Code" section), so the developer does not have to spend time writing code for basic databinding, but still has the flexibility of modifying any code that he would like to. We get the benefits of bound as well as unbound approach.

3. Control over the Databinding process by using events.



डेटा बाइंडिंग के लाभ

1. .NET में डेटाबाइंडिंग का उपयोग डेटा संचालित applications को शीघ्रता से लिखने के लिए किया जा सकता है। .NET डेटा बाइंडिंग आपको तेजी से निष्पादन के साथ कम कोड लिखने की अनुमति देता है लेकिन फिर भी काम को बेहतरीन तरीके से पूरा करता है।

2. .NET स्वचालित रूप से Background में आपके लिए बहुत सारे डेटाबाइंडिंग कोड लिखता है (आप इसे "विंडोज जेनरेट कोड" Section में देख सकते हैं), इसलिए डेवलपर को बुनियादी डेटाबाइंडिंग के लिए कोड लिखने में समय नहीं लगाना पड़ता है, लेकिन फिर भी इसमें लचीलापन होता है जिससे डवलपर किसी भी कोड को संशोधित कर सकता है जिसे वह चाहता है। हमें बाउंड और अनबाउंड approach के लाभ मिलते हैं।

3. घटनाओं/Events का उपयोग करके डाटाबेसिंग प्रक्रिया पर नियंत्रण किया जाता है।

No comments:

Post a Comment