Пример #1
0
        public void Create()
        {
            PersonDAL Pa = new PersonDAL();

            Pa.Persons.Id                   = _Id;
            Pa.Persons.Nationality_Id       = _Nationality_Id;
            Pa.Persons.FullName             = _FullName;
            Pa.Persons.Mother               = _Mother;
            Pa.Persons.Father               = _Father;
            Pa.Persons.Age                  = _Age;
            Pa.Persons.BirthDate            = _BirthDate;
            Pa.Persons.Weight               = _Weight;
            Pa.Persons.NationalityNumber    = _NationalityNumber;
            Pa.Persons.User_Id              = _User_Id;
            Pa.Persons.Photo2               = _Photo2;
            Pa.Persons.Photo1               = _Photo1;
            Pa.Persons.Gender               = _Gender;
            Pa.Persons.Color                = _Color;
            Pa.Persons.SocialStatus         = _SocialStatus;
            Pa.Persons.Residence_Country_Id = _Residence_Country_Id;
            Pa.Persons.Adress               = _Adress;
            Pa.Persons.PlaceBirth           = _PlaceBirth;
            Pa.Persons.height               = _height;
            Pa.Persons.Phone1               = _Phone1;
            Pa.Persons.Phone2               = _Phone2;
            Pa.Persons.GeneralInfo          = _GeneralInfo;
            Pa.Persons.NickName             = _NickName;
            Pa.Persons.SurName              = _SurName;
            Pa.Persons.CountryState         = _CountryState;
            Pa.Persons.ChildCount           = _ChildCount;
            Pa.Persons.MaxChildAge          = _MaxChildAge;
            Pa.Persons.MinChildAge          = _MinChildAge;
            Pa.Persons.Education            = _Education;
            Pa.Persons.EducationBranch      = _EducationBranch;
            Pa.Persons.WorkType             = _WorkType;
            Pa.Persons.Languages            = _Languages;
            Pa.Persons.LivingLevel          = _LivingLevel;
            Pa.Persons.Theams               = _Theams;
            Pa.Persons.Hobbies              = _Hobbies;
            Pa.Persons.Culture              = _Culture;
            Pa.Persons.CultureLevel         = _CultureLevel;
            Pa.Persons.PassportNumber       = _PassportNumber;
            Pa.Persons.Email                = _Email;


            Pa.Create();

            _Id = Pa.Persons.Id;
        }