Search found 8 matches

by DomenicoFormoso
Thu 16 Jun 2022 14:07
Forum: Entity Developer
Topic: Visual Studio 2022
Replies: 29
Views: 1089084

Re: Visual Studio 2022

My subscription is about to expire, I wanted to ask you if you are going to come out with a new version compatible with Visual Studio 2022.
The Devart team must tell the truth to its customers that they intend to continue.
by DomenicoFormoso
Mon 22 Nov 2021 19:50
Forum: LinqConnect (LINQ to SQL support)
Topic: Licensing issue with .NET 6
Replies: 4
Views: 20655

Re: Licensing issue with .NET 6

Yes I own the license, problem a solved thanks
by DomenicoFormoso
Sun 21 Nov 2021 18:42
Forum: LinqConnect (LINQ to SQL support)
Topic: Licensing issue with .NET 6
Replies: 4
Views: 20655

Re: Licensing issue with .NET 6

I have the same problem.
by DomenicoFormoso
Wed 28 Nov 2018 08:59
Forum: dotConnect for MySQL
Topic: Devart.Data.Linq.ForeignKeyReferenceAlreadyHasValueException
Replies: 1
Views: 4031

Devart.Data.Linq.ForeignKeyReferenceAlreadyHasValueException

I have this code:

Code: Select all

WegDataContext db = new WegDataContext();
Fornisceforniamo ff = new Fornisceforniamo();
ff=db.Fornisceforniamos.FirstOrDefault(u => u.Idf == _idf && u.Ida == _ida && u.Ids==_ids);
ff.Ida = textIdA.Text;
ff.u = dataAgg.Value;
ff.p = p.Valore(); //my component
ff.Ids = (int)textS.Tag;    
db.SubmitChanges();
(Ids, Ida and Idf They are Entity Key)

at the line: ff.Ids = (int)textS.Tag;
I get this the error: Devart.Data.Linq.ForeignKeyReferenceAlreadyHasValueException.
I read other posts but I can not figure out how to fix this
by DomenicoFormoso
Wed 28 Nov 2018 08:45
Forum: dotConnect for MySQL
Topic: Some value in autoinc
Replies: 2
Views: 4449

Re: Some value in autoinc

Thanks
by DomenicoFormoso
Wed 10 Oct 2018 09:34
Forum: dotConnect for MySQL
Topic: UserControl and Connection String
Replies: 2
Views: 4614

Re: UserControl and Connection String

My problem is not related to dotConnect but it is component programming.
For the moment I have excluded the data code at designtime.

Code: Select all

 if (!DesignMode)
            {..}
where

Code: Select all

protected bool IsInDesignMode
{
            get
            {
                return DesignMode || LicenseManager.UsageMode == LicenseUsageMode.Designtime;
            }
}
Thanks
by DomenicoFormoso
Tue 09 Oct 2018 13:32
Forum: dotConnect for MySQL
Topic: UserControl and Connection String
Replies: 2
Views: 4614

UserControl and Connection String

I created a usercontrol (mycontrol1) containing a treeview that shows the data by dbcontext.
It works fine if I use it dynamically (I create it in the form this.control.add(mycontrol1)).
But if I use mycontrol1 at design time I get the error: Connection string "xxx" could not be found in the configuration file.

here is my app.config:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <connectionStrings>
        <add name="xxx" connectionString="User Id=xxx;Password=yyy;Host=server;Database=gestio;Persist Security Info=True" />
        <add name="yyy" connectionString="User Id=yyy;Password=yyy;Host=server2;Database=saol3;Persist Security Info=True" />
    </connectionStrings>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
    </startup>
</configuration>

use dot.connect for mysql ver8.12.1229.0
by DomenicoFormoso
Sat 06 Oct 2018 14:53
Forum: dotConnect for MySQL
Topic: Some value in autoinc
Replies: 2
Views: 4449

Some value in autoinc

Hi I'm new to c # but I come from delphi.
I'm turning my software from delphi to c #, instead of MyDac I use dotConnect mysql.
My job today is to force a value on an autoinc column.
MyDac was good at doing this while dotConnect does not do it.

MyDac (work fine insert new row with manifaturer_id=150)

Code: Select all

   ...
   Q:=TmyQuery.Create(Owner);
   Q.Connection:=ecomm;
   id:=150;
   Q.SQL.Text:='INSERT INTO manufacturer (manufacturer_id, ....) VALUES '+'('+StrToInt(id)+',..
   Q.ExecSQL;
   Q.Close;
   ....


dotConnect (work but insert new row with manifaturer_id = nextvalue)

Code: Select all

   ...
    OC dbx = new OC;
    Manufacturer mani = new Manufacturer();
    int id = 150;
    mani.ManufacturerId = id;
    dbx.Manufacturers.InsertOnSubmit(mani);
    dbx.SubmitChanges();
...

Thanks