|
|
One way is to store the last ID number in another table and increment it whenever a row is inserted into the table.
|
|
|
|
|
Yes that's the best way, thanks for your remark.
|
|
|
|
|
Hi Experts,
I am new with VS2008 and not able to find Event icon in Property window or anybody can tell me how i can view all events of particular control.
FYI..I am working with WPF.
Thanks,
Kidya
modified on Tuesday, August 30, 2011 3:31 AM
|
|
|
|
|
At the top of the properties window you should see a tab with a yellow lightning bolt. Click on that and it should display all the available events for the highlighted control
"You get that on the big jobs."
|
|
|
|
|
i am a beginner want to learn OOP in VB.Net.
In theory i understand OOP, but i do not understand apply in form of coding.
i need a sample application OOP, suppose the application inventory.Because i want to see how the use of OOP.
so, please help and teach me.
Thank you very much if you wanna help me..
|
|
|
|
|
|
thank you very much.. i try first..
|
|
|
|
|
How are you making out with this? Any specific questions?
|
|
|
|
|
visualst wrote: so, please help and teach me.
I think you should pick up a book on OOPS with .Net and read it.
Too much of heaven can bring you underground
Heaven can always turn around
Too much of heaven, our life is all hell bound
Heaven, the kill that makes no sound
|
|
|
|
|
hmm, i have a book. but i confuse in build a class like connection to databases.
but thank you for your advice.
|
|
|
|
|
|
how to get and display values in listbox in vb.net
|
|
|
|
|
One way to add values is to a add item by item.
E.g. listbox.Add("A");
You can add a range
E.g.
Dim s1 As String = "A"
Dim s2 As String = "B"
Dim s3 As String = "C"
listbox.Items.AddRange(New String() {s1, s2, s3})
A third way is to bind a collection to the listbox.
For this, you will use the DataSource and the DisplayMember property.
E.g.
listbox.DataSource = ds
listbox.DisplayMember = "ColumnName"
Too much of heaven can bring you underground
Heaven can always turn around
Too much of heaven, our life is all hell bound
Heaven, the kill that makes no sound
|
|
|
|
|
Further to the previous post, you can also iterate the listbox items collection like;
For Each item As String in listbox1.Items
Debug.Writeline(item)
Next
|
|
|
|
|
To expand on Dave's answer, remember that the items don't have to be strings (DataRows, for instance):
For Each item As String in listbox1.Items
Debug.Writeline(item)
Next
Could be
For Each item As DataRow in listbox1.Items
Next
Also, if you're looking for just the items that have been selected, replace
listbox1.Items with
listbox1.SelectedItems
|
|
|
|
|
Hi again,
i'm looking at transaction management for EF. MSDN docs says that transaction are enforced only in the data source level ....so there's no direct way to manage transaction directly at object level as for example in Java?
Thanks
Ste
Ste
|
|
|
|
|
Hi all,
I'm trying to understand where (and maybe if) there is a cache service for ADO.NET Entity framework.
I'm doing this just for a reasearch and comparison with JPA...
Java enforces two type of caches (one per entity context and one shared) but I do not find anything similar in .NET entity framework.
May anyone help me to deal with this problem?
Thanks
Ste
Ste
|
|
|
|
|
AFAIK there is no caching provided. It is up the developer to implement since EF can be used in a variety of situations and what works for one may not be appropriate or necessary in another.
No comment
|
|
|
|
|
So from this point of view (also academic point of view) Java Persistence API is better as is able to provide two different level cache where at least L1 cache does not provide any issues of concurrency, memory, and so on....
There're common widely used solution for 'manual' caching in ADO.NET EF can I check and mention?
I have just found this[^] on MSDN.
Thanks
Ste
Ste
|
|
|
|
|
You are trying to compare oranges and coconuts. They both may grow on tree but they are vastly different in many ways.
You can't compare a .NET technology to a Java technology and determine one is "better" than the other. They each have their purpose and usage.
No comment
|
|
|
|
|
I agree with you! but this is an academic assignment and I can't complain about this. Need to compare both appraches in term of: transparent mapping, caching, transactions, datastores, etc...
Ste
Ste
|
|
|
|
|
Yes, then academically you can't conclude one is "better" than another. Present the facts.
Good luck
No comment
|
|
|
|
|
There is no "this is better than that" in your comparison. There is "what would be more appropriate for this situation". The answer you're trying to get is for all situations, and that isn't a valid conclusion.
There will be situations where Javas Framework would be more appropriate and situations where EF would be more appropriate. Present your facts based as to the strengths and weaknesses of both frameworks.
For example, you seem to think that the Java framework is better because it supplies caching in a couple of contexts whereas EF doesn't supply any. But, did you look into the limitations of Javas caching mechanisms?? Are you design and/or performance bounded by these limitations?? Can you provide custom caching solution? The EF allows for custom caching solutions to be implemented, so does that make it better than Javas?
Is the metric, based on caching alone, going to be the performance benefits of the out-of-the-box caching capabilities or is it going to be the work required to implement a custom caching scheme??
I could keep going, but part of your paper is going to have to explain your testing methodologies and metrics, so it's entirely up to you.
|
|
|
|
|
Perfectly agree with you even if I think that is still complicated to manage this kind of compare and contrast
Ste
Ste
|
|
|
|