C# Class CityDataModel.DataAccess

This is the data access layer. Whenever code wants to get/put/search something in the database, it should use this class like this: using(var model = DataAccess.Get()){ model.(whatever i want) }
Inheritance: IDisposable
Mostra file Open project: RHY3756547/FreeSO

Public Properties

Property Type Description
ConnectionString string

Public Methods

Method Description
DataAccess ( DB db ) : System
Dispose ( ) : void
Get ( ) : DataAccess

Protected Methods

Method Description
Dispose ( bool Disposing ) : void

Method Details

DataAccess() public method

public DataAccess ( DB db ) : System
db DB
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool Disposing ) : void
Disposing bool
return void

Get() public static method

public static Get ( ) : DataAccess
return DataAccess

Property Details

ConnectionString public_oe static_oe property

public static string ConnectionString
return string