MarimerLLC / cslaforum

Discussion forum for CSLA .NET

Home Page:https://cslanet.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Obsolete BeginCreate and BeginFetch

BlagoCuljak opened this issue · comments

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

The equivalent is to use async/await:

  var result = await DataPortal.CreateAsync<AccountList>(name);

What ProjectTracker app is still using those methods?

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

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

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

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.

Thanks @BlagoCuljak

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

Merely a malfunction, old data. Pay it no mind

@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).

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.

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

@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.