Deutsch

кто сил╦н в с++

20.10.05 15:59
Re: кто силён в с++
 
Murr коренной житель
Murr
в ответ voxel3d 20.10.05 02:03
Допустим, применительно к C#. Вероятно, исходя из написанного: int, float, double, decimal, sbyte, short, long.
------
using 'string' prohibited too.
Simplest description of situation follow:
- we have two tables in database
- tables have a relation
- we have a buisnes objects (BO) to represents bouth tables...
In BO code some lamers try assign a foreign key to field of primary key and save a record...
To prevent this action primary key field must have PrimaryKey type and foreign key - ForeignKey type. Assigment operation are allowed only for foreign key. Of course bouth of the types are based on Key type, which contain int, or long, or string field, but all three types are defined outside BO area...
In case that some of fields shuld be wrapped - we wrap all of the scalars types...
<--- nobody harmed in this action -->
 

Перейти на