vb.net - How to do get a row from database in VB? -


hi want create application in vb. , have created forms, , in meantime want 1 form connect database(lets form name, db). have created , connected oracle. in form (db) want search oracle table id(which have been manually created me using sql commands). , if id matches user entered input, other details of id(say name, address) should appear in form! how this? idea, i'm newbie in vb, kindly me! if put code snippet :)

please me how this?

for introduction on connecting oracle db vb .net take @ tutorial. technique described in article simple , fast technique getting started, production applications recommend mapper such nhibernate. once have performed sql select statement against oracle db need copy data have read object pass ui layer:

dim dr oracledatareader = cmd.executereader() ' vb.net dim userobject new user() dim name string =  dr.read() dim address string dr.read() userobject.name = name userobject.address = address 

once have read required data memory use data binding display required data. read more in this article. should need create control on vb.net form, , set datasource userobject have read in database.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -