¡@

Home 

c# Programming Glossary: access

What are the pros and cons to keeping SQL in Stored Procs versus Code

http://stackoverflow.com/questions/15142/what-are-the-pros-and-cons-to-keeping-sql-in-stored-procs-versus-code

on C# ASP.NET Forum . At the moment most of the database access is done by building the SQL inline in C# and calling to the.. probably aren't in source control and therefore can't be accessed via web based SCM browsers and so on. More cons Storedprocs..

TransactionScope automatically escalating to MSDTC on some machines?

http://stackoverflow.com/questions/1690892/transactionscope-automatically-escalating-to-msdtc-on-some-machines

project we're using TransactionScope's to ensure our data access layer performs it's actions in a transaction. We're aiming to.. that takes a Transaction as a parameter or you can try to access a remote transactional serviced component. This serializes the..

What is a good pattern for using a Global Mutex in C#?

http://stackoverflow.com/questions/229565/what-is-a-good-pattern-for-using-a-global-mutex-in-c

throw new TimeoutException Timeout waiting for exclusive access catch AbandonedMutexException Log the fact the mutex was..

Access to Modified Closure

http://stackoverflow.com/questions/235455/access-to-modified-closure

Resharper complains this is an access to modified closure for int i 0 i files.Length i Resharper.. seems to work fine though resharper complains that this is access to modified closure . Can any one shed light on this Thanks.. all of the delegates would throw exceptions when trying to access files i they're capturing the variable i rather than its value..

Why is lock(this) {…} bad?

http://stackoverflow.com/questions/251391/why-is-lockthis-bad

instance variables is is a problem if the instance can be accessed publicly . I'm wondering why Is it because the lock will be.. is usually a better option as the compiler will enforce access restrictions to it and it will encapsulate the locking mechanism... as a parameter and in some way makes it read only or inaccessible. This is false . The object passed as a parameter to lock..

What is the difference between a field and a property in C#?

http://stackoverflow.com/questions/295104/what-is-the-difference-between-a-field-and-a-property-in-c

Fields should almost always be kept private to a class and accessed via get and set properties. Properties provide a level of.. the fields while not affecting the external way they are accessed by the things that use your class. public class MyClass this.. data. private string _myField this is a property. When you access it uses the underlying field but only exposes the contract that..

Reading Email using Pop3 in C#

http://stackoverflow.com/questions/44383/reading-email-using-pop3-in-c-sharp

this question I've successfully used OpenPop.NET to access emails via POP3. If you're looking to do it over SSL see this..

Best practice to save application settings in a Windows Forms Application

http://stackoverflow.com/questions/453161/best-practice-to-save-application-settings-in-a-windows-forms-application

Settings inherited from ApplicationSettingsBase . You can access this class from your code to read write application settings..

Convert generic List/Enumerable to DataTable?

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

6997 I suspect that the bottleneck has shifted from member access to DataTable performance... I doubt you'll improve much on that.....

C# DLL config file

http://stackoverflow.com/questions/594298/c-sharp-dll-config-file

of the app that is referencing it you need to worry about access conflicts. If two apps referencing your library happen to be.. You'll also need to be aggressive about managing access to the file. You'll need to cache as much as possible keeping..

Random number generator only generating one random number

http://stackoverflow.com/questions/767999/random-number-generator-only-generating-one-random-number

are two valid approaches synchronize so that we don't access it at the same time from different threads use different Random..

Is there a way to check if a file is in use?

http://stackoverflow.com/questions/876473/is-there-a-way-to-check-if-a-file-is-in-use

use I'm writing a program in C# that needs to repeatedly access 1 image file. Most of the time it works but if my computer's.. it works but if my computer's running fast it will try to access the file before it's been saved back to the filesystem and throw..

Is there a reason for C#'s reuse of the variable in a foreach?

http://stackoverflow.com/questions/8898925/is-there-a-reason-for-cs-reuse-of-the-variable-in-a-foreach

or anonymous methods in C# we have to be wary of the access to modified closure pitfall. For example foreach var s in strings.. foreach var s in strings query query.Where i i.Prop s access to modified closure Due to the modified closure the above code..

ExecuteReader requires an open and available Connection. The connection's current state is Connecting

http://stackoverflow.com/questions/9705637/executereader-requires-an-open-and-available-connection-the-connections-curren

you're creating a lock for every thread trying to access this object. ASP.NET is a multithreading environment by nature...

How do you check for permissions to write to a directory or file?

http://stackoverflow.com/questions/130617/how-do-you-check-for-permissions-to-write-to-a-directory-or-file

I get an error Unhandled Exception System.UnauthorizedAccessException Access to the path 'mypath' is denied. at System.IO.__Error.WinIOError.. Unhandled Exception System.UnauthorizedAccessException Access to the path 'mypath' is denied. at System.IO.__Error.WinIOError.. at System.IO.FileStream.Init String path FileMode mode FileAccess access nt32 rights Boolean useRights FileShare share Int32 bufferSize..

How to convert a Unicode character to its ASCII equivalent

http://stackoverflow.com/questions/138449/how-to-convert-a-unicode-character-to-its-ascii-equivalent

ê Extended ASCII 136 was inserted in the database. Either Access or the reading component in .NET converted this to U 02C6 U..

Which C# 4.0 Book would you purchase, and why? [closed]

http://stackoverflow.com/questions/2181729/which-c-sharp-4-0-book-would-you-purchase-and-why

question I would recommend that you buy the MEAP Early Access Edition of Jon Skeet's C# in Depth 2nd edition which is updated..

Access to Modified Closure

http://stackoverflow.com/questions/235455/access-to-modified-closure

to Modified Closure string files new string 2 files 0 ThinkFarAhead.Example.Settings.Configuration_Local.xml.. closure for int i 0 i files.Length i Resharper disable AccessToModifiedClosure if Array.Exists Assembly.GetExecutingAssembly.. .GetManifestResourceStream files i ReSharper restore AccessToModifiedClosure The above seems to work fine though resharper..

Why is lock(this) {…} bad?

http://stackoverflow.com/questions/251391/why-is-lockthis-bad

class SomeObject public void SomeOperation lock this Access instance variables is is a problem if the instance can be accessed..

Access to Modified Closure (2)

http://stackoverflow.com/questions/304258/access-to-modified-closure-2

to Modified Closure 2 This is an extension of question from.. Modified Closure 2 This is an extension of question from Access to Modified Closure . I just want to verify if the following..

Accessing a Shared File (UNC) From a Remote, Non-Trusted Domain With Credentials

http://stackoverflow.com/questions/659013/accessing-a-shared-file-unc-from-a-remote-non-trusted-domain-with-credentials

a Shared File UNC From a Remote Non Trusted Domain With Credentials.. command or the Win32 functions that duplicate NET USE . Access the file with a UNC path as if the remote computer were on the..

Embedding unmanaged dll into a managed C# dll

http://stackoverflow.com/questions/666799/embedding-unmanaged-dll-into-a-managed-c-sharp-dll

Driver.dll' is the unmanaged DLL When I run I get Access is denied. Exception from HRESULT 0x80070005 E_ACCESSDENIED..

What is the minimum client footprint required to connect C# to an Oracle database?

http://stackoverflow.com/questions/70602/what-is-the-minimum-client-footprint-required-to-connect-c-sharp-to-an-oracle-da

set various environment variables. I am using Oracle.DataAccess in my code. c# oracle client share improve this question.. database. The easiest way is to install the Oracle Data Access Components . To minimize the footprint I suggest the following.. you absolutely need to use the Oracle provider Oracle.DataAccess you will need ODP .NET 11.1.0.6.20 the first version which allegedly..

servicestack REST API and CORS

http://stackoverflow.com/questions/8211930/servicestack-rest-api-and-cors

new EndpointHostConfig GlobalResponseHeaders Access Control Allow Origin Access Control Allow Methods GET POST.. GlobalResponseHeaders Access Control Allow Origin Access Control Allow Methods GET POST PUT DELETE OPTIONS Access Control.. Access Control Allow Methods GET POST PUT DELETE OPTIONS Access Control Allow Headers Content Type Returning Custom HTTP Headers..

Why Interface Layer/Abstract classes required in our project? [closed]

http://stackoverflow.com/questions/9702032/why-interface-layer-abstract-classes-required-in-our-project

needed Why can't we just go for Business logic Layer Data Access Layer and Presentation Layer only Function in Presentation Layer.. Layer public void abc Preparing the list Function in Data Access Layer public abstract void abc Function in Data Access SQLServer.. Access Layer public abstract void abc Function in Data Access SQLServer Layer public override void abc Connection with database..

How to convert a Unicode character to its ASCII equivalent

http://stackoverflow.com/questions/138449/how-to-convert-a-unicode-character-to-its-ascii-equivalent

the problem In C# I'm getting information from a legacy ACCESS database. .NET converts the content of the database in the case..

insert into ms access database

http://stackoverflow.com/questions/15618165/insert-into-ms-access-database

to another but it doesn't work. I tried the query in MS ACCESS 2007 and it works fine but it doesn't work when called programmatically..

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine while data export to MS ACCESS

http://stackoverflow.com/questions/17716207/the-microsoft-ace-oledb-12-0-provider-is-not-registered-on-the-local-machine-w

registered on the local machine while data export to MS ACCESS I am beginner in using Microsft.ACE.OLEDB 12.0. I create a..

Argh! How do you correctly update the SelectedValue of a ComboBox on initialization?

http://stackoverflow.com/questions/18343855/argh-how-do-you-correctly-update-the-selectedvalue-of-a-combobox-on-initializat

assigning its DataSource as in your code . But you have to ACCESS to the BindingContext property of your ComboBox I would like.. property of your ComboBox I would like to emphasize the ACCESS you can perform any kind of access Read and Write . Here are.. placed here after the DataSource is assigned here you can ACCESS the BindingContext var whatEver cbo.BindingContext READ access..

Model-View-Presenter in WinForms

http://stackoverflow.com/questions/4794121/model-view-presenter-in-winforms

Writing large number of records (bulk insert) to Access in .NET/C#

http://stackoverflow.com/questions/7070011/writing-large-number-of-records-bulk-insert-to-access-in-net-c

k 19 k sw.Write i k sw.Write sw.WriteLine i 19 sw.Close ACCESS.Application accApplication new ACCESS.Application string databaseName.. i 19 sw.Close ACCESS.Application accApplication new ACCESS.Application string databaseName Properties.Settings.Default.AccessDB.. FROM TEMP accApplication.DoCmd.TransferText TransferType ACCESS.AcTextTransferType.acImportDelim TableName TEMP FileName Properties.Settings.Default.TEMPPathLocation..