MarimerLLC / cslaforum

Discussion forum for CSLA .NET
https://cslanet.com
Other
31 stars 6 forks source link

Obsolete BeginCreate and BeginFetch #915

Open BlagoCuljak opened 4 years ago

BlagoCuljak commented 4 years ago

I see that these methods are obsolete since v5, but what substitutes them? In release notes, hyperlink to that issue leads to pull "Bump Microsoft.EntityFrameworkCore".

Current ProjectTracker is still using these methods.

What would be equivalent to this obsolete method?

DataPortal.BeginCreate<AccountList>(name, callback);

CSLA version: 5.1 OS: Windows, Linux, iOS, Android, etc. Platform: WPF, Blazor

rockfordlhotka commented 4 years ago

The equivalent is to use async/await:

  var result = await DataPortal.CreateAsync<AccountList>(name);
rockfordlhotka commented 4 years ago

What ProjectTracker app is still using those methods?

Chicagoan2016 commented 4 years ago

@rockfordlhotka , I just started looking at Project Tracker code 😄 , it is indeed using the right async/await.

BlagoCuljak commented 4 years ago

Samples/ProjectTracker/ProjectTracker.BusinessLibrary.Shared/ProjectList.cs

Chicagoan2016 commented 4 years ago

BusinessLibrary.Shared? you got me! you might have the older version of ProjectTracker

BlagoCuljak commented 4 years ago

BusinessLibrary.Shared? you got me! you might have the older version of ProjectTracker

Go to repository link, and see for yourself. Sorry, that answers my question. Thanks guys.

rockfordlhotka commented 4 years ago

Thanks @BlagoCuljak

Following my strong belief that life is a series of Star Wars quotes:

Merely a malfunction, old data. Pay it no mind

Chicagoan2016 commented 4 years ago

@rockfordlhotka , I thought you would be a trekkie (I am), I never got into Star Wars until I read something to the effect on Quora. According to one user (my words below).

Star Wars events happened in the future, in Milky Way (just for reference, assume two billion years from now) and R2-D2 is narrating the events in another galaxy (far far away from Milky way) in even more distant future (say, three billion years from now).

BlagoCuljak commented 4 years ago

Thanks @BlagoCuljak

Following my strong belief that life is a series of Star Wars quotes:

Merely a malfunction, old data. Pay it no mind

Sure, I googled it, Release notes point to pull 1160,not issue 1160. When to ProjectTracker, on that particular file, obsolete code. Chain of misfortunes.

rockfordlhotka commented 4 years ago

@Chicagoan2016 my fandoms include both Trek and Star Wars, though my first true love is Lord of the Rings.

Chicagoan2016 commented 4 years ago

@rockfordlhotka ,I never got into Lord of the rings 😢 , I guess I need something like what I needed for 'Star Wars', something I could relate to. That came easy with Star Trek since supposedly (might actually happen) it's the future of humanity, but what a coincidence that Star Trek got something really 'cool' right. Although at the time of Next Generation (1980s) , according to Carl Sagan at least, Scientists said that there could be only one other planet (in addition to earth) in Milky Way that could support life. Now only recently they speculate that there could be as many as eight billion planets capable of supporting life in Milky Way.