¡@

Home 

c# Programming Glossary: table

Virtual member call in a constructor

http://stackoverflow.com/questions/119506/virtual-member-call-in-a-constructor

but start out as the most derived type with the method table being for the most derived type. This means that virtual method.. has not been run and therefore may not be in a suitable state to have that method called. This problem is of course..

Create Excel (.XLS and .XLSX) file from C# [closed]

http://stackoverflow.com/questions/151005/create-excel-xls-and-xlsx-file-from-c-sharp

Pivot Tables and ExcelLibrary may have some support Pivot table issue in ExcelLibrary Here are a couple links for quick reference.. is the single line at the bottom Create the data set and table DataSet ds new DataSet New_DataSet DataTable dt new DataTable.. con.Open Create a query and fill the data table with the data from the DB string sql SELECT Whatever FROM MyDBTable..

Why is Dictionary preferred over hashtable?

http://stackoverflow.com/questions/301371/why-is-dictionary-preferred-over-hashtable

is Dictionary preferred over hashtable In most of programming languages dictionaries are preferred.. programming languages dictionaries are preferred over hashtables. What are the reasons behind that c# .net vb.net data structures.. share improve this question FWIW a Dictionary is a hash table. If you meant why do we use the Dictionary class instead of..

Why is it important to override GetHashCode when Equals method is overridden?

http://stackoverflow.com/questions/371328/why-is-it-important-to-override-gethashcode-when-equals-method-is-overridden

the Equals method because Foo represent a row for the Foos table. Which is the preferred method for overriding the GetHashCode.. or not. In this case it looks like return FooId is a suitable GetHashCode implementation. If you are testing multiple properties..

Is there any significant difference between using if/else and switch-case in C#?

http://stackoverflow.com/questions/395618/is-there-any-significant-difference-between-using-if-else-and-switch-case-in-c

mode. In release it will be compiled into jump table through MSIL 'switch' statement which is O 1 . C# unlike many.. differently. It's obviously not practical to build jump tables for strings of arbitrary lengths so most often such switch.. it with string constants and make a lookup on that table followed by jump. Hashtable lookup is not strictly O 1 and has..

Convert generic List/Enumerable to DataTable?

http://stackoverflow.com/questions/564366/convert-generic-list-enumerable-to-datatable

static method or whatever to convert any list into a datatable The only thing that i can imagine is use Reflection to do this... in advance. Kind Regards. Josema. c# list generics datatable poco share improve this question Here's a nice 2013 update.. from NuGet IEnumerable SomeType data ... DataTable table new DataTable using var reader ObjectReader.Create data table.Load..

Create code first, many to many, with additional fields in association table

http://stackoverflow.com/questions/7050404/create-code-first-many-to-many-with-additional-fields-in-association-table

first many to many with additional fields in association table I have this scenario public class Member public int MemberID.. API Or is there a better way to create the association table Thank you. c# entity framework code first share improve this.. create a many to many relationship with a customized join table. In a many to many relationship EF manages the join table internally..

Making Entity Class Closed for Changes

http://stackoverflow.com/questions/11425993/making-entity-class-closed-for-changes

Pattern with C# Inheritance with EF Code First Part 2 Table per Type TPT http weblogs.asp.net manavi archive 2010 12 28.. payment Insert the entity MyDataContext.GetTable DBML_Project.Payment .InsertOnSubmit payment public void SubmitChanges..

Get all associate/composite objects inside an object (in Abstract way)

http://stackoverflow.com/questions/11470037/get-all-associate-composite-objects-inside-an-object-in-abstract-way

its own properties e.g CouponValue CardValue etc . Hence Table Per Hierarchy will not be good . We need separate tables. Is..

Soft Delete Entity Framework Code First

http://stackoverflow.com/questions/12698793/soft-delete-entity-framework-code-first

entry var e entry.Entity as ModelBase string tableName GetTableName e.GetType Database.ExecuteSqlCommand String.Format UPDATE.. us data jj592676.aspx entry.State EntityState.Detached GetTableName returns the table to be updated for an entity. It handles.. have to will look into EF Code First Mapping Between Types Tables private readonly static Dictionary Type EntitySetBase _mappingCache..

How can I use the button tag with ASP.NET?

http://stackoverflow.com/questions/187482/how-can-i-use-the-button-tag-with-asp-net

btnLogin.Controls.Add new Label btnLogin.Controls.Add new Table I don't know how well a combination of both options works as..

Passing List<> to SQL Stored Procedure

http://stackoverflow.com/questions/209686/passing-list-to-sql-stored-procedure

ReportId ItemId SELECT @ReportId Id FROM fn_GetIntTableFromList @Items '~' Where the function returns a one column table.. 2008 is an option for you there's a new feature called Table valued parameters to solve this exact problem. Check out more..

Algorithm to avoid SQL injection on MSSQL Server from C# code?

http://stackoverflow.com/questions/249567/algorithm-to-avoid-sql-injection-on-mssql-server-from-c-sharp-code

nature of the string. 1212 Lemondrop Ln Waltersburg PA and Table Rock NE are valid address fields. Running a daily scan of all..

C# List<> Sort by x then y

http://stackoverflow.com/questions/289010/c-sharp-list-sort-by-x-then-y

want to achieve the functional equivalent of SELECT from Table ORDER BY x y We have a class that contains a number of sorting..

How to detect whether a character belongs to a Right To Left language?

http://stackoverflow.com/questions/4330951/how-to-detect-whether-a-character-belongs-to-a-right-to-left-language

D.1 Characters with bidirectional property R or AL Start Table D.1 05BE 05C0 05C3 05D0 05EA 05F0 05F4 061B 061F 0621 063A 0640.. FD3D FD50 FD8F FD92 FDC7 FDF0 FDFC FE70 FE74 FE76 FEFC End Table D.1 Here's some code to get the complete list as of Unicode..

Best way to remove duplicate entries from a data table

http://stackoverflow.com/questions/4415519/best-way-to-remove-duplicate-entries-from-a-data-table

is the best way to remove duplicate entries from a Data Table Thanks in Advance c# .net datatable duplicate data share.. share improve this question Remove Duplicates public DataTable RemoveDuplicateRows DataTable dTable string colName Hashtable.. Remove Duplicates public DataTable RemoveDuplicateRows DataTable dTable string colName Hashtable hTable new Hashtable ArrayList..

Is BCrypt a good hashing algorithm to use in C#? Where can I find it?

http://stackoverflow.com/questions/481160/is-bcrypt-a-good-hashing-algorithm-to-use-in-c-where-can-i-find-it

that can be reverted to the original string. Rainbow Table a lookup table that contains all variations of characters hashed..

How to pass table value parameters to stored procedure from .net code

http://stackoverflow.com/questions/5595353/how-to-pass-table-value-parameters-to-stored-procedure-from-net-code

improve this question Looks like the MSSQL Tips article Table Value Parameters in SQL Server 2008 and .NET C# shows how to..

Convert HTML to PDF in .NET [closed]

http://stackoverflow.com/questions/564650/convert-html-to-pdf-in-net

for this but it does not perform well when it encounters Table and the layout just gets messy. Is there any free library available..

LINQ Expression to return Property value?

http://stackoverflow.com/questions/567963/linq-expression-to-return-property-value

static IEnumerable T SelectByParameterList T PropertyType Table T items IEnumerable PropertyType parameterList Expression Func..

HTML Agility pack - parsing tables

http://stackoverflow.com/questions/655603/html-agility-pack-parsing-tables

in Perl before and it was a bit clumsy but worked ok. HTML TableParser . I am also happy if one can just shed a light on the.. cell in row.SelectNodes th td .Cast HtmlNode select new Table table.Id CellText cell.InnerText foreach var cell in query Console.WriteLine..

Import XML to SQL using C#

http://stackoverflow.com/questions/772946/import-xml-to-sql-using-c-sharp

varchar 1 NULL ARH varchar max NULL ON PRIMARY Create Table Rac_Npl br_rac Char 12 kasa_id Char 3 npl_id Integer iznos Money..

Entity Framework Stored Procedure Table Value Parameter

http://stackoverflow.com/questions/8157345/entity-framework-stored-procedure-table-value-parameter

Framework Stored Procedure Table Value Parameter I'm trying to call a stored procedure that.. the less useful for people trying to pass User Defined Tables into a store proc. After playing around with Nick's example.. args var entities new NewBusinessEntities var dt new DataTable dt.Columns.Add WarningCode dt.Columns.Add StatusID dt.Columns.Add..

Efficient DataTable Group By

http://stackoverflow.com/questions/8472005/efficient-datatable-group-by

DataTable Group By I would like to perform an aggregate query on a DataTable.. By I would like to perform an aggregate query on a DataTable to create another DataTable. I cannot alter the SQL being used.. an aggregate query on a DataTable to create another DataTable. I cannot alter the SQL being used to create the initial DataTable...

C# classes to undelete files? [duplicate]

http://stackoverflow.com/questions/8819188/c-sharp-classes-to-undelete-files

you'll have to understand the concept of Master File Table . Actually that's pretty hard. For FAT file systems that's less..

How many String objects will be created when using a plus sign?

http://stackoverflow.com/questions/9132338/how-many-string-objects-will-be-created-when-using-a-plus-sign

that String objects are cached in the String Intern Pool Table for performance improvement but that's not the question. c#..

How to create “embedded” SQL 2008 database file if it doesn't exist?

http://stackoverflow.com/questions/1715691/how-to-create-embedded-sql-2008-database-file-if-it-doesnt-exist

finally this.DBConnection.Close createDDL @ CREATE TABLE AAASchemaVersion Version int NOT NULL DateCreated datetime.. nvarchar 30 NOT NULL Notes nvarchar MAX NULL ALTER TABLE AAASchemaVersion ADD CONSTRAINT PK_Version PRIMARY KEY CLUSTERED.. tad more complex but basically runs stuff like this CREATE TABLE AuditUser ID int IDENTITY 1 1 NOT NULL UserSourceTypeID tinyint..

How do I protect this function from SQL injection?

http://stackoverflow.com/questions/1862036/how-do-i-protect-this-function-from-sql-injection

tableName string sqlStatement string.Format TRUNCATE TABLE 0 tableName return ExecuteNonQuery dbAlias sqlStatement 0 c#.. FROM INFORMATION_SCHEMA.Tables WHERE table_type 'BASE TABLE' AND table_name @tableName Now you can pass your input variable.. square brackets string sqlStatement string.Format TRUNCATE TABLE 0 tableName Now you're only at risk for SQL injection if tableName..

How to get the IP address of a machine in C#

http://stackoverflow.com/questions/2019431/how-to-get-the-ip-address-of-a-machine-in-c-sharp

What's the fastest way to bulk insert a lot of data in SQL Server (C# client)

http://stackoverflow.com/questions/24200/whats-the-fastest-way-to-bulk-insert-a-lot-of-data-in-sql-server-c-client

more. I have a simple table that looks like this CREATE TABLE BulkData ContainerId int NOT NULL BinId smallint NOT NULL Sequence..

linq to entities case sensitive comparison

http://stackoverflow.com/questions/3843060/linq-to-entities-case-sensitive-comparison

is case sensetive by running this on your Sql Server ALTER TABLE Thingies ALTER COLUMN Name VARCHAR 25 COLLATE Latin1_General_CS_AS..

Entity Framework: Setting a Foreign Key Property

http://stackoverflow.com/questions/480872/entity-framework-setting-a-foreign-key-property

We have a table that looks roughly like this CREATE TABLE Lockers UserID int NOT NULL PRIMARY KEY foreign key LockerStyleID..

SQL Server (2008) Pass ArrayList or String to SP for IN()

http://stackoverflow.com/questions/519769/sql-server-2008-pass-arraylist-or-string-to-sp-for-in

dbo . csl_to_table @list nvarchar MAX RETURNS @list_table TABLE id INT AS BEGIN DECLARE @index INT @start_index INT @id INT.. in your stored procedure like so DECLARE @passed_in_ids TABLE id INT INSERT INTO @passed_in_ids id SELECT id FROM dbo . csl_to_table..

OracleParameter and IN Clause

http://stackoverflow.com/questions/541466/oracleparameter-and-in-clause

question You can do it more easily with ODP.NET Create a TABLE type in your database CREATE TYPE t_varchar2 AS TABLE OF VARCHAR2.. a TABLE type in your database CREATE TYPE t_varchar2 AS TABLE OF VARCHAR2 4000 Create a collection parameter OracleParameter..

C# constructing parameter query SQL - LIKE %

http://stackoverflow.com/questions/664314/c-sharp-constructing-parameter-query-sql-like

var SQL string.format SELECT FROM 0 WHERE 1 LIKE ' ' TABLE NAME cmd.Parameters.AddWithValue NAME JOHN Now I have tried.. string var SQL string.format SELECT FROM 0 WHERE 1 LIKE TABLE NAME Cmd.Parameters.AddWithValue NAME JOHN share improve this..

Import XML to SQL using C#

http://stackoverflow.com/questions/772946/import-xml-to-sql-using-c-sharp

In SQL I have three tables that look like this CREATE TABLE dbo . Racuni BROJ varchar 12 NULL DATUM datetime NULL TS datetime.. Char 12 kasa_id Char 3 npl_id Integer iznos Money CREATE TABLE dbo . Stavke br_rac varchar 12 NULL kasa_id char 3 NULL art_id..

Entity Framework Stored Procedure Table Value Parameter

http://stackoverflow.com/questions/8157345/entity-framework-stored-procedure-table-value-parameter

like the following... CREATE TYPE dbo . udt_Warnings AS TABLE WarningCode nvarchar 5 NULL StatusID int NULL DecisionID int..