Need some samples to make Entity framework interact with WPF
HI guys,
I need to create an app which will query all details about customer from very big database for different search crieria. I don't have any sp to call individual section details of customer. so i planned to go with Entity framework and WPF. Both are new to
me.
Could someone please help me with creating good WPF application (beautiful look and feel) & entity framework interaction with DB?
or any other to make this requirement in an easy way with latest technologies.. All i need some good UI for searching customer details..
thanks in advance
Regards
bala
Balamurugan
I (obviously) agree my sample is something to look at.
Since it's the first in a series rather than a complete guide it cuts a number of corners.
One to emphasise is that I almost never allow a user to edit in a datagrid directly.
I either use popups so they are forced to work on one record at a time.
Or I have a different usercontrol for a particular task a user does - like raising an order say.
The second in the series is on the way. Not sure when exactly but next month. I have the code ready but I've not written the article for it yet. Depending on your timescales you might find that useful.
Also read this:
http://social.technet.microsoft.com/wiki/contents/articles/26673.wpf-collectionview-tips.aspx
That explains some dynamic filtering on the client and touches on a way to haul bits of a HUGE set of data onto the client.
You definitely don't want to do that all at once.
The thing to emphasis is you should always be looking to give the user a subset to look at.
Think in terms of a maximum of 200 to 300 records at a time in a datagrid.
Linq with EF offers pass through queries.
You will almost certainly want to use that feature in order to pick all the customers starting with the letter A or in town xyz or whatever.
You use linq on the client and it is turned into sql on the database.
One thing which is sort of odd about linq is that the sql is generated when you iterate a collection. That has an odd benefit which is great for flexible querying.
You can base one linq query on another and chain your various criteria together.
That only generates sql when you use that end result.
Hope that helps.
Recent Technet articles:
Property List Editing;
Dynamic XAML
Similar Messages
-
Hi,
I Would like to know what I need to do to make work iWork"09 with my portable which has mac OS Lion 10.7.5 ; it does non open it because it says I need to do some updates but how can I do it if it does not open it ?
Thank YouWILL ANYONE ANSWER MY QUESTION? WHAT DO I HAVE TO DO TO GET A REPLY FOR MY CONUNDRUM/
-
I need some sample customer data
Hi all,
I need some sample customer data along with order details (for any product) for a mining application. Can anyone help me in this regard....
thanks,
swathi.Hi all,
I need some sample customer data along with order details (for any product) for a mining application. Can anyone help me in this regard....
thanks,
swathi. -
Need some sample documents for DME development
Hi,
I need some sample documents for DME development. I expect any information covering developing DME formats and steps for downloading a DME file (this I need for checking my formats).
please, send any relevant info you have to mail id mindaugas.kazlauskas at gmail.com
Many thanks and reward points ahead!
Regards,
MindaugasHi,
the main thing is that I need format with payment information structured in single column, like this:
//separator//
value1
value2
value3
//separator//
value1
value2
value3
//separator//
maybe there is any SAP format structured like this?
Regards,
Mindaugas -
Need some sample alvs using merge
I need some sample alvs using merge
Hi!
data w_fieldcat type slis_fieldcat_alv.
type-pools : slis.
tables : sflight.
data : i_fieldcat type slis_T_fieldcat_alv.
data v_repid like sy-repid.
data : begin of i_sflight occurs 0,
carrid like sflight-carrid,
connid like sflight-connid,
fldate like sflight-fldate,
end of i_sflight.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_program_name = v_repid
i_internal_tabname = 'I_SFLIGHT'
i_inclname = v_repid
changing
ct_fieldcat = I_fieldcatalog_TYPE.
Check this link
http://help.sap.com/saphelp_nw04/helpdata/en/22/a3f5fed2fe11d2b467006094192fe3/frameset.htm
Regards
Tamá -
Need some help: my itunes won't sync with my iphone anymore. Both softwares are up to date and I've reinstalled itunes. After I reinstall, it syncs. But then when I reboot my computer, it no longer syncs anymore and I have to keep reinstalling itunes. Thoughts???
thought that it was possible to have the same iTunes library on any machine that was authorised, a kind of cloud-iTunes I guess.
That would convenient, but sadly it is not the case. Sorry!
Either way your welcome and best of luck!
B-rock -
Functional Module:Need some sample source code.
Hi All,
I have created a customized table u2018ZStock_Order_Dealeru2019 with the following fields:
Stock_Order_Dealer
Dealer Number
S2D order Number
Line item Number
Material Number
Ordered Quantity
Batch Number
Received Quantity
S2D from D2G
Receiving Date
I need to create a remote enabled function module in CRM system to fetch the u2018Batch Numberu2019 and u2018Received Quantityu2019 fields when the Material Number is fed to it.Please note that the input and output should be tables.
Could some one please give some sample source code for this.I used table types and select queries to resolve this problem.
-
Need some sample data for obiee practice
Hi All,
I installed OBIEE 11.1.1.5 using SQL SERVER 2005.
Can someone help me out some sample data for practise purpose other than sampleapplite
Thanks,
SatyaBThe full version of BI Sample Application (not the lite) has a pretty good amount of sample data for practice. Have you tried using it?
http://www.oracle.com/technetwork/middleware/bi-foundation/obiee-samples-167534.html -
Guys i am using Entity Framework 5 code first (I am not using edmx) with Oracle and all works good, Now i am trying to get data from stored procedure which is under package but stored procedure have out param which is user define type, Now my question is
how i will call stored procedure from entity framework
Thanks in advance.I agree with you, but issue is we have lots of existing store procedure, which we need to call where damn required. I am sure those will be few but still i need to find out.
If you think you are going to get existing MS Stored Procedures or Oracle Packages that had nothing to do with the ORM previously to work that are not geared to do simple CRUD operations with the ORM and the database tables, you have a rude awakening
coming that's for sure. You had better look into using ADO.NET and Oracle Command objects and call those Oracle Packages by those means and use a datareader.
You could use the EF backdoor, call Oracle Command object and use the Packages, if that's even possible, just like you can use MS SQL Server Stored Procedures or in-line T-SQL via the EF backdoor.
That's about your best shot.
http://blogs.msdn.com/b/alexj/archive/2009/11/07/tip-41-how-to-execute-t-sql-directly-against-the-database.aspx -
Hi i am new GP i need some sample blogs
hi am new to GP please send some links and blogs
Hi Sukumar,
Have a look at the following links too:
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84df3e36-0301-0010-be9d-b99aad8c81e6">Composite Application Framework in SAP NetWeaver</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4277f37b-0601-0010-0597-89e792177e2b">Creating Composite Applications with SAP CAF</a>
<a href="/people/mario.herger/blog/2004/12/30/caf-training-material-online training material online</a>
<a href="/people/mario.herger/blog/2005/02/03/additional-caf-training-material-online CAF Training material online</a>
<a href="/people/ashutosh.rastogi/blog/2006/11/25/setting-up-roles-for-caf-gp-and-visual-composer up Roles for CAF, GP and Visual Composer</a>
Also have a look at the following links:
CAF ...GP ?
Difference between CAF and GP?
Bye
Ankur
Do reward points for helpful as well as solved answers!! -
Unzipping files - works, but need some hlp to make it better
Hi there!
I am trying to unzip files using java.util.zip
My code works If I have a parent directory for all files/folders.
So when I unzip the structure is as -
zipFileName -> parent folder -> child files/folders
where, zipFileName and parent folder names are same.
But I want to have it as
parent folder -> child files/folders.
Here is my code :
public void unzipFiles(String zipFileName, String zipFolderPath, String unzipPath) {
Enumeration entries;
ZipFile zipFile;
try {
//Set up a directory name for the unzipped files
String courseFolderName = zipFileName.substring(0, zipFileName.indexOf("."));
//Get the zip file from its location in the "zip" folder on theServer
String separator = File.separator;
zipFile = new ZipFile(zipFolderPath + separator + zipFileName);
//Set up the directories in the data store
entries = zipFile.entries();
while (entries.hasMoreElements()) {
ZipEntry entry = (ZipEntry)entries.nextElement();
if (entry.isDirectory())
String dir = entry.getName();
System.out.println("entry :"+unzipPath + separator + courseFolderName + separator + dir);
checkFilePath(unzipPath + separator + courseFolderName + separator + dir);
unzippedFolders.addElement(courseFolderName + separator + dir);
//Add the unzipped files to the data store
entries = zipFile.entries();
while (entries.hasMoreElements()) {
ZipEntry entry = (ZipEntry)entries.nextElement();
if (entry.isDirectory())
continue;
if (debug)
System.out.println("Extracting file: " + entry.getName());
copyInputStream(zipFile.getInputStream(entry),
new BufferedOutputStream(
new FileOutputStream(unzipPath + separator + courseFolderName + separator + entry.getName())));
zipFile.close();
catch (IOException e) {
e.printStackTrace();
catch (Exception e) {
e.printStackTrace();
[\code]
The above code works if the zip file is having all files under a parent folder:
zipFileName -> parent folder -> child files/folders
sample output:
unzipping the files...
entry :C:\DataStore\template\test2/IMAGES/
Creating directory C:\DataStore\template\test2/IMAGES/
entry :C:\DataStore\template\test2/INPUTS/
Creating directory C:\DataStore\template\test2/INPUTS/
otheriwse, if I have no levels under my zip level, I get an error like this:
unzipping the files...
Extracting file: schedule.htm
Extracting file: IMAGES/AMTC.GIF
java.io.FileNotFoundException: C:\DataStore\schedule\IMAGES/AMTC.GIF (The system
cannot find the path specified)
Can somebody pls help me find out where I am going wrong. Any help would be really really great.
Thanks
-MahiI don't know if this will help but... If I understand correctly, is not
recreating the correct directory tree?
// unjar the jar to the destination directory destdir
// destdir = c:\mydir\ is prepended to each jar entry
JarFile jarFile = new JarFile( "myjar.jar" );
Enumeration e = jarFile.entries();
while( e.hasMoreElements() )
JarEntry entry = (JarEntry)e.nextElement();
File localFile = new File( destdir + entry.getName() );
---> // peel off the parent path and make as directories
---> File directory = new File( localFile.getParent() );
---> directory.mkdirs();
// these can be inlined if desired
FileOutputStream fileOutputStream = new FileOutputStream( localFile );
BufferedOutputStream bufferedOutputStream = new BufferedOutputStream( fileOutputStream );
copyInputStream( jarFile.getInputStream( entry ), bufferedOutputStream );
jarFile.close(); -
Dear Members
Can any one send me sample reports of
.AP Trailbalance Report
.Transactions Available for Reconciliation Report
To the following mail.id
[email protected]
Thanks
Padarthy
Edited by: padarthy on Sep 17, 2009 4:35 AMHi,
*1) AP Trailbalance Report (Sample)*
===================================
EU_IRL_EUR Report Date: 22-SEP-2009
Accounts Payable Trial Balance
Reporting Level: Operating Unit
Reporting Context: EU_OU_EUR_IRL
Set of Books Currency: EUR
As of Date: 22-SEP-09
Supplier Name: CAULFIELD INDUSTRIAL LTD
Liability Account: All
Summarize Report: No
Negative Balances Only: No
Exclude Invoices Prior To
Invoice
Invoice Number Date Curr Amount Remaining Amount Invoice Description
Liability Account: 560110.311101010.560001.0.000.00.0000000.0000.00
Supplier Name: CAULFIELD INDUSTRIAL LTD
05385321 12-MAY-09 EUR 95.03 95.03 Caterpillar Relay Runner
05385999 18-MAY-09 EUR 49.25 49.25 black shoes
Total for Supplier : 144.28 144.28
Total for Liability Account : 144.28 144.28
================== ==================
Total for Report : 144.28 144.28
================== ==================
*2) Transactions Available for Reconciliation Report...* Not sure what report you are looking for.. Are you looking for AP - GL Reconciliation Report or Accrual Reconciliation Report or Unaccounted Transactions Report?
Regards,
S.P DASH
Edited by: spdash12 on Sep 22, 2009 4:20 AM -
hello
I want to prepare new resume with 3+yrs experience.
can anybody send me sample resumes which are having 3+yrs experienceHi,
This is not the Forum for Getting Resume.
Before Posting thread Please go through the Rules of Engagement .
This thread will be locked by moderator.
Regards,
Sujit -
Need some sample for parameters in used in default Reports of SCOM
Hi ,
I am running Performance report for 2008 Servers from the Reporting Server Link (http:\\reportserver\reports), instead of SCOM console. I see below fields for which there are no documentation and i am not sure what data to provide in those , and it is mandatory
too. Can you please help me out in providing an sample data or an Link for the documentation to this reports. The same will be different in SCOM console though and i don't know why. The parameters what i find here are not i find in Console of SCOM.
[Start Date Base]
[Start Date Offset Type]
[Start Date Offset]
[Time Type]
S.Arun PrasathStart Date Base: refer to Form this week, this month, previous month
Start Date Offset Type: whether your from date is today plus three day/month/week/quarter/year
Start Date Offset: whether your from date is today 3/-1/4 day/month
Time Type: whether using business time or not
Roger -
Need some sample SAP XI Certification Questions
Hi All,
I am new to XI and attending XI Certification exam. So can you please send me some material to prepare for certification. Thanks for your time.
Regards,
Ramesh Babu.pls refer to this link -
SAP XI certification in India
Regards
- Atul
Maybe you are looking for
-
Hi everyone, I got this ipod touch 1G and recently upgraded it to the 3.1.3 firmware. Lovely update to the clock and the calculator, but it screwed my notes! First thing i noticed was that I couldn't open many of my notes; it returns to the home scre
-
sir, is there any std report available wherein i can get total purchase order value inclusive of all taxes(excise,vat,octroi). pl tell me any possible source to get the same.
-
How do you add a hyperlink to a jpeg?
I would like to email a photograph (jpeg) to friends and clients that allows them to click on the photo to be directed to my website. Can anyone tell me if it is possible to hyperlink a jpeg and if so, how to do it. Thanks!
-
After release the release version different than debug version ????
Hello guys, I am having a HUGE issue with my release build version of my application, when i run my application through eclipse it runs perfectly, however after making a release build of the application and running it behaves different than the versi
-
PGI using Stock with Special Stock Indicator "E". (STO)
Hi, We are in the process of creating Stock Transfer. While doing PGI the System is displaying the following message: Only 0 EA of material 1103DGC22LB 08062009 available When we executed T Code MMBE, we found the Stock exits with Special Stock Indic