Showing posts with label VS2008. Show all posts
Showing posts with label VS2008. Show all posts

Tuesday, April 13, 2010

List of Default Values returned by Default Constructor in C# for Value Types

Please find the list of default values returned by Default Constructor for Value Types.

Value Type Default Value
bool FALSE
byte 0
char '\0'
decimal 0.0M
double 0.0D
enum The value produced by the expression (E)0, where E is the enum identifier.
float 0.0F
int 0
long 0L
sbyte 0
short 0
struct The value produced by setting all value-type fields to their default values and all reference-type fields to null.
uint 0
ulong 0
ushort 0

(Source : http://msdn.microsoft.com/en-us/library/83fhsxwc.aspx)

For more information please visit :http://msdn.microsoft.com/en-us/library/83fhsxwc.aspx

Happy Learning !!!

Sunday, April 11, 2010

Oracle Data Provider for .Net (ODP.NET) - Oracle 11g Features

Oracle Data Provider (ODP.NET) for Oracle 11g has been available for download. It includes many new features such as

  • Optimized Data Access for Oracle
  • New ODP.NET allows to take advantage of  the Oracle advanced features like Real Application Cluster, XML DB and advanced security.
  • Supports .Net 3.5 Framework
  • More Flexible, faster and stable
  • Supports Native XML Data Type, Advanced Queuing API

Download White Paper
http://www.oracle.com/technology/tech/windows/odpnet/col/odp.net_11.1.0.7.20_twp.pdf

Get Features List
http://www.oracle.com/technology/tech/windows/odpnet/newfeatures.html

Download 32  bit Software
http://www.oracle.com/technology/software/tech/windows/odpnet/index.html

Download 64  bit Software
http://www.oracle.com/technology/software/tech/windows/odpnet/64-bit/index.html

Sample Code
http://www.oracle.com/technology/sample_code/tech/windows/odpnet/index.html

Happy Learning !!!

Filtering Records in a Data Table in ADO.NET

The below code snippet shows how to filter data in a data table based on certain values.
       
///
        /// Filters the Data Table based on the Employee ID and returns the No. of          
         Row Count available.
        ///
        ///

        ///

        private void button1_Click(object sender, EventArgs e)
        {

            DataTable dtTestTable = new DataTable();
            DataRow drRow;

            //Validating the Table
            if (dtTestTable != null & dtTestTable.Columns.Count > 0)
            {
                dtTestTable.Rows.Clear();
                dtTestTable.Columns.Clear();
            }

            //creating columns
            dtTestTable.Columns.Add("EmployeeID", typeof(System.Int16));
            dtTestTable.Columns.Add("FirstName", typeof(System.String));
            dtTestTable.Columns.Add("LastName", typeof(System.String));

            //Adding Rows
            for (int rowCount = 1; rowCount <= 10; rowCount++)
            {
                drRow = dtTestTable.NewRow();
                drRow["EmployeeID"] = rowCount;
                drRow["FirstName"] = "First Name of Row " + rowCount;
                drRow["LastName"] = "First Name of Row " + rowCount;
                dtTestTable.Rows.Add(drRow);

            }
            //display Total Records Count message
            MessageBox.Show(dtTestTable.Rows.Count.ToString ());

            //filter data table rows based on the employee ID;
            Int16  empID=9;

            //Set the filter condition and assign to RowFilter
            dtTestTable.DefaultView.RowFilter = "EmployeeID=" + empID;

            //display the filtered record count
            MessageBox.Show(dtTestTable.DefaultView.ToTable().Rows.Count.ToString ());

        }

Happy Learning !!!

Quick Glance at the Scrum vs SAFe Terminology

Scrum is a framework based on the principles of Agile whereas SAFe is all about how to scale Scrum at the enterprise level. So basically, SA...