What do you want to save?
Add Code snippet
New code examples
-
C# 2022-03-18 01:10:02
cosmos db get all items in container
//These three are from microsoft.azure.cosmos //You can download them using nuget CosmosClient cosmosClient = new CosmosClient(Uri, PrimaryKey); Database database = cosmosClient.GetDatabase(DatabaseId); Container container = database.GetContainer(Containe... Add solution -
C# 2022-03-16 11:15:47
.net httpclient add body
public async string Example() { //The data that needs to be sent. Any object works. var pocoObject = new { Name = "John Doe", Occupation = "gardener" }; //Converting the object to a json string. NOTE: Make sure the ob... Add solution -
C# 2022-03-11 08:20:09
ef core linq
using System; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; namespace HelloApp { public class Program { public s... Add solution -
Javascript 2022-02-02 09:21:03
expo image editor
import { ImageEditor } from "expo-image-editor"; function App() { const [imageUri, setImageUri] = useState(undefined); const [editorVisible, setEditorVisible] = useState(false); const selectPhoto = async () => { // Get the permis... Add solution -
C# 2022-02-01 12:51:45
example HttpClient c# Post
async Task<string> GetResponseString(string text) { var httpClient = new HttpClient(); var parameters = new Dictionary<string, string>(); parameters["text"] = text; var response = await httpClient.PostAsync(BaseUri,... Add solution -
Other 2022-01-30 15:05:48
how manage pagination ef core
public static class PaginationService { public static async Task<Pagination<T>> GetPagination<T>(IQueryable<T> query, int page, string orderBy, bool orderByDesc, int pageSize) where T : class { Pagination<T> ... Add solution