Mapper.CreateMap<Employee, EmployeeDto>() .ForMember(d => d.FullName, opt => opt.MapFrom(src => src.FirstName + " " + src.LastName)); var employees = await db.Employees.ProjectTo<EmployeeDto>().ToListAsync();
public class Employee { [Computed] public string FullName { get { return FirstName + " " + LastName; } } } Mapper.CreateMap<Employee, EmployeeDto>(); var employees = await db.Employees.ProjectToListAsync<EmployeeDto>();
WF:Windows Workflow #۴
من اینو تو محیط کنسول نوشتم این ارور رو بهم داد
'workflow1': the private implementation of activity '1: workflow1' has the following validation error: condition must be set before the flowdecision in flowchart 'flowchart' can be used.
//////////// Begin the new section QueryParser oParser = new QueryParser("Body", new StandardAnalyzer()); string sTitle = "", sWriterID = "", finalQuery = ""; sTitle = " AND (Title:" + titleTerm + ")"; sWriterID = " AND (WriterID:" + writerID + ")"; finalQuery = "(" + bodyTerm + sTitle + sWriterID + ")"; hits = searcher.Search(oParser.Parse(finalQuery)); //////////// End of the new section
انتقال به asp.net core
This is a defense of the most prolific and dedicated public servant that has graced the world in my lifetime. One man has added hundreds of billions, if not trillions of dollars of value to the global economy. This man has worked tirelessly for the benefit of everyone around him. It is impossible to name a publicly traded company that has not somehow benefited from his contributions, and many have benefited to the tune of billions. In return for the countless billions of wealth that people made from the fruits of his labor, he was rewarded with poverty and ridicule. Now that the world is done taking from him, they are heading to the next step of vilifying him as incompetent.
معرفی برنامه Angular Console
اجرای دات نت در مروگر توسط Ooui
Earlier this year, Microsoft announced their support for Blazor, and now Frank A. Krueger has developed the Ooui library which allows C# or F# to be used to write applications that run in the browser. Ooui can target WASM, enabling Xamarin.Forms app to be deployed in web assembly and the result runs entirely in-browser without the need for an application server.
If you want to stay in touch with the latest developments in any field, you should be aware of the conferences and events regarding those topics. Thanks to the pandemic, all the conferences and events have taken the online route. Well, the best part is that it has become accessible to everyone. You do not even have to apply for official leaves to attend them.