c# - Removing navigation properties from a generic list in entity-framework -


firstly object class generated entity framework:

public partial class sorular {     public int id { get; set; }     public string soru { get; set; }     public int taslakid { get; set; }      public virtual devriyeformtaslak devriyeformtaslak { get; set; } } 

i getting values this:

public list<sorular> getsorular()  {   return entity.getentity().sorular.orderby(s => s.soru).tolist(); } 

the part call method:

var sorular_list = sorular_model.getsorular(); 

the thing is, need remove navigation properties. found clear() method couldn't manage use properly. tried remove devriyeformtaslak attribute foreach loop failed again. should ?


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -